How do you retrieve information from web.config ?
Answer Posted / anand
we use as
<appsetting>
<add name="connection" connectionString="Data
Source=...;Initial Catalog=database_name;User
ID=..;Password=.."/>
</appsetting>
and in page
string strConnString =
ConfigurationManager.ConnectionStrings["connection"].ConnectionString.ToString();
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
List some of the important session state modes of asp.net.
Explain authorization levels in .net ?
What are web beacons used for?
What is a pixel url?
Explain the difference between the web config and machine config.
What are directives in asp.net?
Is there any alternative to avoid name collisions other then Namespaces?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What is the state management in asp.net?
Can master pages be nested?
What is asp.net architecture?
What's the use of formatters in .net?
What is the exact purpose of http handlers?
What is data grid view in asp.net?
When should I use server transfer and response redirect?