HIDDEN问题
有两个页面A.ASPX,B.ASPX
A页里有一个LINKBUTTON,
在PageLoad里
if (!IsPostBack)
{
string lou = "select id,[name] from jihe_Lou";
pub.BindDroplist(lou, loudrop);
if (Session["s"] != null)
{
hd.Value = Session["s"].ToString();//服务器HIDDEN//这一步HD.VALUE是能获取到的
Session["s"] = null;
msg.d_show(hd.Value);//弹出对话框,但是现在调试竟然没有弹
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Write("<script>window.open('x.aspx?id=1');</script>");//通过打开新窗口B.ASPX
}
B页面
protected void Button1_Click(object sender, EventArgs e)
{
string s=null;
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
s += CheckBoxList1.Items[i].Text + ",";
}
}
s = s.Substring(0, s.LastIndexOf(",") );
Session["s"] = s;
Response.Write("<script>window.top.location.href='AAA.aspx';window.close();</script>");
}
//点确定回到A页面
就是这样一个过程为什么我的HIDDEN的值在调试时是能获取到的,但是弹出对话框把值打出来却打不出来,并且也没弹
谁能解释一下