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 ambient transaction?
What is namespace in ado.net?
Explain which name space is used to get assembly details?
Explain sqlconnection object?
What are the benefits of ADO.NET?
Which is faster datareader or dataadapter?
Does sqlclient and oledb class share the same functionality?
What is the role of data provider in ado.net?
What is ado.net in mvc?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
Describe the command object and its method.
Define Execute Reader?
How to connect and retrieve data from database using dataset
differences between ADO and ADO.NET
What is maximum pool size in ado.net connection string?