<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="DissData_cs" %>
<html>
    <script language="c#" runat="server">
	void OK_Click(object sender,EventArgs e){
		DissSql NowDissSQL = (DissSql)Session["NowDissSQL"];
		string ValiRes = NowDissSQL.ValiUser(Name.Text,Password.Value);
		if(ValiRes==""){
			Message.Text="密码错误";
		}
		else{
			Session["Lg_ok"]="-1";
			Session["NowMan"]=ValiRes;//记录人名
			Session["NowID"]=Name.Text;//记住登录ID
			Response.Redirect(Session["NowFile"].ToString());
		}
        }
    </script>
<body background="../../../../images/winback.gif">
      <form runat=server>
          输入ID</font>：<asp:textbox id="Name" runat=server/>(ID及密码皆为john)
          <p>输入密码：<input id="Password" type=password size=10 runat=server>
          <asp:button text="确定" Onclick="OK_Click" runat=server/></p>
           <asp:label id="Message" forecolor="red" font-bold="true" runat=server/>
       </form>
   </body>
</html>
