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 difference between datareader and dataadapter?
What does executereader return?
What is the use of ADO.NET and XML web services?
What are the benefits of using of ADO.NET in .NET 4.0?
Some important instruction regarding ADO.NET connection string ?
Which control of the BindingNavigator returns the current position within the data source?
What is the difference between sqldatareader and sqldataadapter?
Which method is used by command class to execute SQL statements that return single value?
What Is Difference Between Ado And Ado.net?
How to create data relations?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What is ado.net tutorial?
What are the steps to connect to a database?
What is the maximum pool size in ado.net connection string?
What do you mean by performing asynchronous operation using command object?