Page_Load()被多次调用(页面中使用的每个JS文件一次),而Page.IspostBack为FALSE

时间:2019-04-25 16:37:25

标签: c# asp.net telerik telerik-ajax

我阅读了此问题和答案

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

这正常吗?

1 个答案:

答案 0 :(得分:0)

问题解决了。 这是一个URL重写问题! 抱歉,没有提供足够的信息!我已经忘记了有关URL重写的所有内容,因为这是很久以前完成的!

相关问题