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 Difference between asp.net and asp ?
For which does this Codebehind="MyCode.aspx.cs" is relevent to ?
Explain how is a property designated as read-only?
Is asp.net still used?
What are different methods of session maintenance in asp.net?
What is the behavior of a Web browser when it receives an invalid element?
What are the advantages of asp.net mvc framework? : asp.net mvc
Describe SOA and the tenets of it?
Can we handle the error and redirect to some pages using web.config?
Disable browser cache for entire ASP.NET website?
What are server-side comments in ASP.NET?
What is web router?
Web API uses which library for JSON serialization?
What is the caspol.exe tool used for?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?