How do you retrieve information from web.config ?
Answer Posted / ansu_kumar
generaly we store our connection string in web.config file
under tag
<appsetting>
<add key=connection_string
value="data source=......"/>
</appsetting>
and
for accessing the value
in aspx page we writes
string const=
configurationsetting.appsetting.connection_string
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
When was asp.net released?
How would you implement inheritance using c#?
How can we Validate a Controls in ASP.NET page using JavaScript?
Can I combine classic asp and asp.net pages?
How will you load dynamic assembly?
How to fetch a data from one table to another table in asp.net ?
what are the Custom controls in asp.net?
What are validator? Name the validation controls in asp.net? How do you disable them?
What are the Types of authentications in IIS
What is localhost in asp.net?
What is postback request?
What is the purpose of session management?
How does the cookies work in asp.net?
Which data type does the rangevalidator control support?
What are the versions of garbage collection?