Principalcontext configuration with web.config

645 Views Asked by At

I'm able to get group memberships using following code:

PrincipalContext(ContextType.Domain, "mydomain", "administrator", "Password"))

I would like to move this administrator username password in web.config so that I dont have to make changes to the code when the password changes.

0

There are 0 best solutions below