-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: aamirOnline
Message 2 in Discussion
Hi
.Net is so versatile that it allows you to create and use your own AppSettings too....
For that you will have to define custome section in the web.config file. and then you
will have to create key value pairs in the newly create section in the form of tag
attributes.
<configuration>
<configSections>
<section name="sampleSection"
type="System.Configuration.SingleTagSectionHandler" /> <!-- Define -->
</configSections>
<sampleSection setting1="Value1" setting2="value two" setting3="third value" />
<!-- Set Value -->
</configuration>
Once custom section is define you can use it with the
ConfigurationSettings.GetConfig()
IDictionary sampleTable = (IDictionary)
ConfigurationSettings.GetConfig("sampleSection");
string strSetting1 = (string)sampleTable["setting1"];
string strSetting2= (string)sampleTable["setting2"];
string strSetting3= (string)sampleTable["setting3"];
I hope the concept is now clear to you.... Regards M Aamir Maniar System Analyst
(CWS), Freelance OOAD Consultant [ [EMAIL PROTECTED] ]
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]