我读了这个问题和答案
就我而言, 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
3 号是 7/script/bootstrap.js
这是正常的吗?