0
を引っ張る、私は、コードの後ろに私のC#でこれらのユーザ名とパスワードの文字列を引くことができますどのようには私のweb.configファイルで<identity>文字列
<identity userName="CTX_DOMAIN\ldapuser" password="ldapPW" />
がありますか?
を引っ張る、私は、コードの後ろに私のC#でこれらのユーザ名とパスワードの文字列を引くことができますどのようには私のweb.configファイルで<identity>文字列
<identity userName="CTX_DOMAIN\ldapuser" password="ldapPW" />
がありますか?
これは動作するはずです:確かに
System.Web.Configuration.IdentitySection identityInfo = (System.Web.Configuration.IdentitySection)ConfigurationManager.GetSection("system.web/identity");
string userName = identityInfo.UserName;
string password = identityInfo.Password;
!どうもありがとうございました :) –