How to you declare connection strings and how to you make
use of web.config ?
Answer Posted / ansu kumar
in
web.config file
<appsetting>
<add key="constr" value="data source=database name;
database=database name"/>
</appsetting>
and
in .aspx file
string str=configurationsetting.appsetting.constr;
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the executescalar method?
Is it possible to load multiple tables in a Dataset?
What is ado connection?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
Explian About DataAdapters
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What are the namespaces used in ado.net for data access?
What is difference between Dataview and Datatable?
What are the various methods provided by the DataSet object to generate XML?
How to load multiple tables into a dataset?
What is the default Timeout for SqlCommand.CommandTimeout property?
What is oledb driver?
What is the significance of CommandBehavior.CloseConnection ?
What is bubbled event?
How can we perform transactions in .net?