Read from Web.Config (or Overloads??)


I

i_robot73

Trial by fire is the only way I learn. Unfort. I got myself stumped
on this part.

If I have a web.config w/ the 'base' paramaters I can read them out
just fine:

ConfigurationManager.AppSettings["<key name>"];

What if I wish to ONLY use that value (say, 1st time around), but when
a new value is passed, use that instead?

I'm using the web.config to pull LDAP base path, login ID & pw (all to
be encrypted of course), for an AD query. But if anything needs to
change, prompt for id/pw & kick off a new DirectoryEntry, etc. Was
thinking, also, of using the search to refine the LDAP path to start
the search FROM.

Any help and/or better setup (I'm SURE there's a 'few' better out
there) I'd much appreciate.

Just FYI (AD - TreeView). If search screen contains <member3>, start
search in that node....

Root
Member1
User....
Member2
Users...


Thanks,

David D.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top