xmpp.OnMessage += new agsXMPP.protocol.client.MessageHandler(xmpp_OnMessage);void xmpp_OnMessage(object sender, agsXMPP.protocol.client.Message msg)
{
string test= "";
test= msg.Body;
if (!test.Equals("") || test!= string.Empty)
{ Session["info"] = test;
}
}按钮2刷新界面
protected void Unnamed1_Click2(object sender, EventArgs e)
{
Response.Redirect(Request.Url.ToString());
}
load方法 protected void Page_Load(object sender, EventArgs e)
{
if (Session["info"] != null)
{
info.Text = Session["info"].ToString();
} }
为什么Session["info"]还是空的、、
{
string test= "";
test= msg.Body;
if (!test.Equals("") || test!= string.Empty)
{ Session["info"] = test;
}
}按钮2刷新界面
protected void Unnamed1_Click2(object sender, EventArgs e)
{
Response.Redirect(Request.Url.ToString());
}
load方法 protected void Page_Load(object sender, EventArgs e)
{
if (Session["info"] != null)
{
info.Text = Session["info"].ToString();
} }
为什么Session["info"]还是空的、、
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货