0
LdapAuthentication adAuth = new LdapAuthentication(adPath);
try
{
if(true == adAuth.IsAuthenticated(txtDomain.Text, txtUsername.Text, txtPassword.Text))
{
//You can redirect now.
Server.Transfer("~/WebForm2.aspx");
}
我想将登录页面移动到默认(webform.2),但结果是错误正在执行〜/ WebForm2.aspx的子请求。我写错码了吗?或者我可能丢失了一些代码。如何使用Autentication将页面引导到ASP.NET中的另一个页面
仍然执行〜/ WebForm2.aspx的子请求时出错。 –
如果我不添加
你能发布你正在得到的确切的错误吗? – rahlrokks