Last post Oct 03, 2012 01:16 PM by jrahma
Apr 21, 2008 01:52 PM|keepfatinmind|LINK
I want to stored a value to my web.config
just wondering how to add parameter to web.config and how to retrieve it?
thank you ( I use VS2005 C#)
Apr 21, 2008 02:03 PM|mpt_fz|LINK
This is what you should do in app.config.
This is how to get the value of the connection String
String abc =ConfigurationManager
Apr 21, 2008 02:05 PM|BHendry|LINK
You can add it to the <appSettings> section like so:
<add key="emailAddress" value="firstname.lastname@example.org"/>
And you can retrieve it in your code using:
Apr 21, 2008 02:08 PM|mpt_fz|LINK
Oh, don't forget to add System.configuration as a reference in your project.
Oct 03, 2012 01:16 PM|jrahma|LINK
how can I set a BackColor of a cell in <asp:Table> or any other html element?