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 is server side session management?
What is the difference between dispose() and finalize()?
Is there any limit for query string? Means what is the maximum size?
Define xmlvalidatingreader class.
Why the javascript validation not run on the asp.net button but run successfully on the html button?
What are custom user controls in asp.net?
What is different in .net 1.1 and .net 2.0?
What is session handling in a webfarm, how it can work with its limits?
Explain the advantages of passport authentication.
What I need to create and run an asp.net application?
What is the displayafter property in updateprogress control?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
Explain exception filters?
What is a runtime version?
Which is the parent class of the ASP.NET server control?