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 a data control clerk?
What is ado rdo dao in visual basic?
What are the key features of ado.net?
What are the parameters that control most of connection pooling behaviours?
How to add a check box or a dropdown list to a column in a datagrid?
What is dataset and datatable in ado.net?
Which object needs to be closed?
What is ado full form?
What is the difference between Dataset. clone and Dataset.copy?
What are two important objects of ADO.Net?
What is the difference between data grid and data repeater?
What is the namespaces being used to access oracle database?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What are the types of databinding?
What are the various methods provided by the DataSet object to generate XML?