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
Describe the command object and its method.
What is ado.net in mvc?
What is oledb driver?
How can we check that some changes have been made to dataset since it was loaded?
Define connection string?
Which parameter of ConnectionString is used to specify the name of the database?
What is the use of SqlCommand object?
What is difference between ado and other data object?
What are the pre-requisites for connection pooling?
What is shadow copy?
can we create synonymn in ms access,sql server,my sql if so explain me with example
Which property is used to check whether a DataReader is closed or opened?
What is the meaning of executenonquery?
Which is the best method to get two values from the database?
What are the different methods by which we can populate a dataset?