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
Which is the feature of ado.net?
What are the main differences between classic ado and ado.net?
Explain the basic use of "dataview" and explain its methods.
describe the dataset object in ado.net.
What is the difference between a datareader and a dataset?
What is bubbled event can you please explain?
What is dbcontext and dbset in entity framework?
How do you connect to sql server database without using sqlclient?
What is the role of clr?
What are the data access namespaces in .NET?
What is ole in vb?
What is openrowset?
What is an ADO.Net?
Which method is used by command class to execute SQL statements that return single value?
What is ado and rdo?