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 difference between executenonquery () and executescalar ()?
Which is faster entity framework or ado.net?
What is data control techniques?
describe the dataset object in ado.net.
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?
Which object of ado contains datarow datacolumn collection?
What is ado.net explain with diagram?
Explain the basic use of "dataview" and explain its methods.
How do you find the count of records in a dataset?
Which is better entity framework or ado.net?
How would you connect to database using .NET?
What are the main differences between classic ado and ado.net?
What is ado and dao?
What is the difference between connected and disconnected environment?
What is connected architecture in ado.net?