ascx文件里有一个按钮 <asp:ImageButton ID="button" runat="server"
ImageUrl="../images/net-vivi3_39.jpg" onclick="button_Click" />在aspx里的添加了ascx这个控件为什么提交表单没有反影啊。。??
ImageUrl="../images/net-vivi3_39.jpg" onclick="button_Click" />在aspx里的添加了ascx这个控件为什么提交表单没有反影啊。。??
{
sql = "select * from Tab_admin where username='" + txt_username.Text.Trim() + "' and userpwd='" + cls_db.EncryptedB(txt_userpwd.Text.Trim()) + "'";
dt = cls_db.GetDataTable(sql);
if (dt.Rows.Count > 0)
{
Response.Cookies["uid"].Value = dt.Rows[0]["id"].ToString();
Response.Cookies["username"].Value = txt_username.Text.Trim();
Response.Cookies["password"].Value = txt_userpwd.Text.Trim();
Panel1.Visible = false;
Panel2.Visible = true;
}
else
{
Response.Write("<script>alert('您输入的用户名或密码不正确,请重新输入!')</script>");
}
}
这个浏览后的html代码。。