您的位置:首页 > 编程语言 > ASP

ASP.NET用户名及密码放在Web.config中的Forms验证

2008-09-07 16:58 246 查看
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);

        }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: