Last post May 15, 2009 03:01 PM by vickyiori
May 15, 2009 02:45 PM|AppDevForMe|LINK
Hello I have a connection string in my database which I read throughout my VB .Net application.
I have another string which is NOT a connection string though. It instead has information about
a domain on LDAP. So LDAP string just needs to be stored in the web.config as a string, and also to be retrieved as a string.
How shall I store it in the web.config? And how can I retrieve this value in my VB.net code?
I know this is different than storing connection strings, but I don't know how to go about it?
May 15, 2009 02:54 PM|mudassarkhan|LINK
May 15, 2009 02:54 PM|agrawalbs|LINK
put it in appsettings :-
<Add key="KeyName" value="valueName" />
To retrieve to value use this :
May 15, 2009 03:01 PM|vickyiori|LINK