0
ID来的Global.asax喜欢一个变量发送到Global.asax的,但是当我调试字符串的值仍是空发送变量与阿贾克斯
Ajax调用是这样的:
$.post("Global.asax", { strLandCode: LandCode });
我在Global.asax中的代码如下所示:
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
string strLandcode = Request["strLandCode"];
}
值strLandcode = NULL
的后Ajax调用启动时的默认页面加载(发送时首先出现的国家COUNTRYCODE)
你需要上晚自习的asp.net应用程序生命周期的运作。你现在的心智模式严重缺陷。 – asawyer 2011-02-07 14:44:13