I've got a login control that pre-populates the username using:
TextBox txtUserName = (TextBox)Login1 .FindControl("U serName");
string requestor = WindowsIdentity .GetCurrent().N ame;
string[] paramsLogin = requestor..Spli t('\\');
txtUserName.Tex t = paramsLogin[1].ToString();
I'm wondering if there's an easy way to read the
'attributeMapUs ername' setting (if there is one) from the web.config.
IF is set to 'sAMAccountName ', remove the domain info.
Trying to make this as idiot proof as possible, since it seems no one
READS the d@mn instructions printed on the screen =P
TextBox txtUserName = (TextBox)Login1 .FindControl("U serName");
string requestor = WindowsIdentity .GetCurrent().N ame;
string[] paramsLogin = requestor..Spli t('\\');
txtUserName.Tex t = paramsLogin[1].ToString();
I'm wondering if there's an easy way to read the
'attributeMapUs ername' setting (if there is one) from the web.config.
IF is set to 'sAMAccountName ', remove the domain info.
Trying to make this as idiot proof as possible, since it seems no one
READS the d@mn instructions printed on the screen =P
Comment