Suppose this page is currently loaded: [url]http://localhost/myapp/?page=news[/url]
Default.aspx in the Myapp folder will then include /news/default.aspx.
In the file /news/default.aspx there is a <asp:button> that triggers
Sub_MyClick. But instead of reloading the same page
([url]http://localhost/myapp/?page=news[/url]), it jumps to
How to prevent this? I've tried to add the following code to global.asax...
Sub Application_EndRequest(Sender As Object, e As EventArgs)
If Request.IsAuthenticated And Request.Filepath <> "/myapp/Default.aspx"
And IsNothing(Request.Form("__VIEWSTATE")) = False Then Response.Redirect
....but that only created other problems.