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
How would ASP and ASP.NET applications run at the same time on the same server?
What are the components of ado.net?
Explain Authentication mechanism in dotnet
What is bound controls
Is asp.net and .net are same or different?
Which asp.net objects encapsulate the state of the client and the browser?
What are the advantages of using Master Pages?
Where the cookie value is stored?
How many web config files can be created for an application?
How can we create custom controls in asp net?
What are the namespace classes used in asp.net mvc? : asp.net mvc
What are the difference between overriding and overloading?
Can we handle the error and redirect to some pages using web.config?
Can you explain architecture of your project ?
Which data type does the rangevalidator control support?