我读了这个问题和答案
Load() being called multiple times
在我的例子中,Page_Load被解雇了3次,而不是“回发”。此外,查询字符串也是错误的。
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="/Scripts/jquery.js"></script>
<script src="/Scripts/bootstrap.js"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
/telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" >
</telerik:RadAjaxLoadingPanel>
</form>
</body>
</html>和
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Form.Action = Request.RawUrl;
if (Request.QueryString["s"] != null)
//do something with querystring
}
}QueryString值第一次为真。(例如7)
在第二次,page_load触发它是7/scrips/jquery.js
第三天是7/script/bootstrap.js
这正常吗?
发布于 2019-04-26 15:24:30
问题解决了。这是一个URL重写问题!对不起,没有提供足够的信息!我已经忘记了所有的URL重写,因为这部分是很久以前完成的!
https://stackoverflow.com/questions/55853982
复制相似问题