小弟 刚学asp.net 我想做个 表单提交 和 用户登陆系统~ 请大家帮帮忙

解决方案 »

  1.   

    到www.asp.net或www.codestudy.com找去
      

  2.   

    <authentication mode="Forms" > 
    <forms loginUrl="login.aspx"></forms>
    </authentication>
    <authorization>
    <deny users="?"/>
    </authorization>
    ------------------------>config文件里面设置认证模式private void Button1_Click(object sender, System.EventArgs e)
    {
      string UserName=TextBox1.Text.ToString().Trim();

      Session["SessUserName"]=UserName;
      FormsAuthentication.RedirectFromLoginPage(UserName,false);
    //数据库里验证……
    然后转到其他页
    Response.Redirect("2.aspx?name="+System.Web.HttpUtility.UrlEncode(TextBox1.Text));
    }