Reputation: 510
I read This question and answers
ASP.Net: Page_Load() being called multiple times
In my case, Page_Load is fired 3 times and it is not "postback". Also, the query string is wrong.
<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>
and
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 value is true on first time.(7 for example)
on the second time, page_load fired it is 7/scrips/jquery.js
on 3rd it's 7/script/bootstrap.js
is this normal?
Upvotes: 1
Views: 177
Reputation: 510
Problem solved. It was a URL rewriting problem! Sorry for not giving enough information! I have forgotten all about URL rewriting because this part was done a long time ago!
Upvotes: 0