Hi
In summary
I have discovered that when using the latest versions of Chrome or Firefox
that I am getting an expected page Request, causing the page to re-load. This
does not happen using IE8.
----------------------------
In detail
We have an ASP.NET (.NET 3.5) site that uses Telerik controls (not sure if
that's relevant) and I find that I am getting an extra hit to the asp.net
page.
The example is a page with a list of products and a paging control. I note
the following events:
- User clicks on "next page"
- The page's OnLoad() event handler fires:
- this.Page.IsPostBack = true
- this.Request.HttpMethod = "Post"
- ViewState is as expected
- The page goes through all the steps to identify the next page's products and
data binds them
- The page renders in the browser, but the "loading" icon still indicates
activity
- The page's OnLoad() event handler fires:
- this.Page.IsPostBack = false
- this.Request.HttpMethod = "GET"
- ViewState is empty (it's not considered a post back)
- The page goes through all the steps to identify the next page's products
- The OnRender event runs and the browser's "loading" icon indicates that
loading has completed - but there is no indication that anything new has been
rendered....it's almost as if it's written to a different channel.
- If "Next Page" is then called, this again is a PostBack and the ViewState is
as expected
I can't work out why this second page load event (that's a GET) should occur
for FF or Chrome (but not IE).
The second event:
- messes up my diagnostic tracing
- presumably will cause the servers to do far more work in Production than is
required
----------------------------
Any ideas what could be causing this (and how to stop it)?
Many thanks in advanced
Griff
----------------------------
PS - I originally posted this problem to forums.asp.net (
http://forums.asp.net/t/1688350.aspx/1?Unexpected+page+requests ) and
one response suggested that this behaviour was related to Telerik, hence
this post.