private void Button1_Click(object sender, System.EventArgs e)
{  string k="";
     string checkout="0";
   SqlConnection myConn=new SqlConnection(ConfigurationSettings.AppSettings["ConnectString"]);
string strsql="select quanxian as k from user_login where user_name='"+TextBox1.Text+"' and user_psw='"+TextBox2.Text+"'";
SqlCommand myCommand=new SqlCommand(strsql,myConn);
myConn.Open();
try
{
      
//if (!k.Equals(checkout))
//// {
// Response.Redirect("WebForm3.aspx");
// }
// if(k.Equals(checkout))
//{
//  Response.Redirect("login.aspx");
// }
if (k!=checkout)
{
Response.Redirect("WebForm3.aspx");
}
if(k==checkout)
{
Response.Redirect("login.aspx");
}
}
catch(SqlException u){throw u;}
//if(TextBox1.Text=="Finish"&TextBox2.Text=="123")
//{
// Response.Redirect("WebForm3.aspx");
//}
}