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
Explain the overview of ado.net architecture?
What is oledb connection?
What is adodb dll?
What is sql connection in ado.net?
What is ado connection?
Define Execute Scalar?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?
Is ado.net dead?
What is the use of connection object in ado.net?
Describe the command object and its method.
What are the advantage of ado.net?
How to create data relations?
What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?
What is a column variable?