web.config
登陆按钮:
protected void Button1_Click(object sender, EventArgs e)
{
bool result = FormsAuthentication.Authenticate(TextBox1.Text, TextBox2.Text);
if (result)
FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, true);
}
本文介绍了一个简单的ASP.NET登录验证过程,使用FormsAuthentication进行用户身份验证,并根据验证结果重定向到登录后的页面。
1207

被折叠的 条评论
为什么被折叠?



