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 validator? How do you disable them?
What is a server cookie?
Is asp.net is a programming language?
What is the difference between GridView and Repeater controls in ASP.NET?
How to find out what version of asp.net I am using on my machine?
What is asp net objects?
In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
Explain culture and uiculture values.
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
Describe paging in asp.net?
What are the namespaces used in asp.net mvc? : asp.net mvc
Whats the difference between abstract factory pattern and factory pattern?
What is the syntax for datagrid and specifying columns?
What are Master Pages in ASP.NET?