以下的代码,点击按钮后提示为空,请问何解?
==============================================================public class AA : System.Web.UI.Page
{
protected string strL = null; //设置为 public 也不行
private void Page_Load(object sender, System.EventArgs e)
{
strL = "AA";
}
private void btnBack_Click(object sender, System.EventArgs e)
{
Response.Write("<script>alert('" + strL + "')</script>");
}
}
==============================================================public class AA : System.Web.UI.Page
{
protected string strL = null; //设置为 public 也不行
private void Page_Load(object sender, System.EventArgs e)
{
strL = "AA";
}
private void btnBack_Click(object sender, System.EventArgs e)
{
Response.Write("<script>alert('" + strL + "')</script>");
}
}
100mb 的!可以做论坛!才 50元!!速度飞快!
www.hi876.com 你们看看