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
What are the different types of validation controls provided in ASP.NET?
What is a user session?
What is server transfer?
How will you load dynamic assembly?
What is the used of "ispostback" property?
Explain about consistent programming model in the .NET framework?
What is a query string in a url?
What are asp.net web forms?
What is the purpose of asp.net?
What setting must be added in the configuration file to deny a particular user from accessing the secured resources?
What is the significance of finalize method in .net?
What is state management technique?
How can I open ashx file in mobile?
What are demand-paging and pre-paging?
What is page fragment caching?