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 are advantages of microsoft-provided data provider classes in ado.net?
What is difference between sqldatareader and sqldataadapter?
Give few examples of datareader that is used in different dataproviders.
What is the difference between linq and ado.net?
What are the essential features of ado.net?
What is ado.net components?
What are the methods of XML dataset object?
What we do with the object of ado.net dataset after using it?
Explain ado.net features?
What is the use of SqlCommand object?
What is the difference between the clone() and copy() methods of the dataset class?
Which is the feature of ado.net?
How to retrieve the user id which is provided while windows authentication?
How can we save all data from dataset?
How do I delete a row from a DataTable?