我想当把光标定位在TextBox上还有checkboxlist后,同是清空它的session?我写的如下,但为什么系统不会去执行它的呢?protected void ChBLike_SelectedIndexChanged(object sender, EventArgs e)
{
Session["Like"] = "";//checkboxlist控件
}
protected void txtUser_TextChanged1(object sender, EventArgs e)
{
Session["username"] = "";//textbox控件
}
{
Session["Like"] = "";//checkboxlist控件
}
protected void txtUser_TextChanged1(object sender, EventArgs e)
{
Session["username"] = "";//textbox控件
}
要remove
protected void ChBLike_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("ChBLike_SelectedIndexChanged");
Session["Like"] = "";//checkboxlist控件
}
把委托调用的方法改成这个.