我阅读了此问题和答案
ASP.Net: Page_Load() being called multiple times
在我的情况下,Page_Load被触发3次,而不是“回发”。 另外,查询字符串是错误的。
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Form.Action = Request.RawUrl;
if (Request.QueryString["s"] != null)
//do something with querystring
}
}
和
User.defaultColumns = 'displayName, email';
QueryString值首次为true。(例如7)
第二次,page_load被触发为7 / scrips / jquery.js
3号是7 / script / bootstrap.js
这正常吗?
答案 0 :(得分:0)
问题解决了。 这是一个URL重写问题! 抱歉,没有提供足够的信息!我已经忘记了有关URL重写的所有内容,因为这是很久以前完成的!