Hi Hareth
You need to add an application configuration file to your program . this is
an xml file that you can load values from at runtime .
In that xml under the tag called application setting you can add a key
value pairs , then you can use the key within your application to get the
value. So if you have something like this in your config file
<appSettings>
<!-- connection -->
<add key="connS" value="uid=EDSCUser;password=123456789;data
source=server;persist security info=False;initial catalog=ESCEMEPu34 ? />
<!-- from mail address -->
<add key="greating" value="Hi" />
</appSettings>
You can later in your code get the value this way
String mygreating = ConfigurationSettings.AppSettings.Get("greating")
You can read more on this link
http://blogs.msdn.com/suzcook/archiv...14/132022.aspx
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC