ASP.NET - How to read the configuration from the web.config in this case
Asked By mostafa hamdy on 26-May-11 12:20 PM
hello all
I have some web application having some configuration in the web.config like the following:
<system.web>
<profile>
<properties>
<add name="English" defaultValue="En" />
<add name="Frensh" defaultValue="Fr" />
</properties>
</profile>
</system.web>
</configuration>
and I want to read properties from the CS file , how can I read the properties using the ConfigurationManager
please if any body get what I mean and can help me please send me or tell me about some url may help me in doing that
regards
Mostafa
Santosh Singh replied to Mihir Soni on 26-May-11 02:18 PM
Refer the link : http://www.alltechnicalfaqs.com/2011/05/how-to-store-database-connection-string.html
To understand web.config more better refer : http://www.alltechnicalfaqs.com/2010/04/understanding-aspnet-configuration.html
Regards,
Santosh
http://www.goodlivingguide.nethttp://www.goodlivingguide.net