button的click事件没有反应
在一个用户登陆界面 不知道为什么点击btnLogin的时候没反应,btnRegister的时候可以相应。在btnLogin事件设置断点也执行不进去,后台的代码是这样的:
public partial class UserLogin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnLogin_Click(object sender, ImageClickEventArgs e)
{
Boolean flag = UserBLL.Login(txtLoginName.Text.Trim(), txtPassword.Text.Trim());
if (flag == true)
{
Response.Redirect("~/Main.aspx");
}
else
{
SqlHelper.ShowMsg("您输入的用户名或密码错误!");
}
}
protected void btnRegister_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("~/UserReg.aspx");
}
求各位大神指点!!谢谢!!!