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 use of sqldatareader class?
How we can provide data to ado.net?
What is the difference between data grid and data repeater?
What does adodb stand for?
What is the difference between linq and ado.net?
What is dbcontext and dbset in entity framework?
What is an orm, and why would you use one instead of plain old ado.net?
How to pass multiple tables in datasets simultaneously?
What DataReader class do in ADO.NET ?
What are all the different methods under sqlcommand?
What is aggregate root?
What are the types of databinding?
What is the difference between executequery and executenonquery?
Explain sqlconnection object?
Explain advantages of ado.net?