Ask a Question related to ASP.NET General, Design and Development.
-
John Knoop #1
Postback jumps to different page
Hi
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
[url]http://localhost/myapp/news/default.aspx[/url].
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
(request.urlreferrer.absoluteuri)
End Sub
....but that only created other problems.
Anyone?
John Knoop Guest
-
spry menubar jumps to top of page
i've seen this in a few different forums but so far no decent fixes. basically in ie7, the dropdown menus pop to the top of the page. here's the... -
Contribute 4 Editing, when typing page jumps to top ofpage
When in the Dreamweaver like edit mod after clicking the edit button I go to enter some text and the focus of the page goes straight to the top... -
How do you do <a> jumps in a Cold Fusion page
I am trying to do page jumps, for a FAQ on a Cold Fusion page. I wanted to use the old tried and true method of <a> jumps to topics within the... -
Update page without postback
Hi all! I´ve heard about someone that used webservice to get around postback everytime a button or something is pushed. Someone who have tried... -
File upload and page PostBack.
In my project I am uploading file using File control. After browsing file user needs to select other values from DropdownList to determine... -
venkat #2
Postback jumps to different page
hi
first let me know is this correct?
[url]http://localhost/myapp/?page=news[/url]. /?page=news how this
will come.
regards
G.Venkat[url]http://localhost/myapp/?page=news[/url]>-----Original Message-----
>Hi
>
>Suppose this page is currently loaded:include /news/default.aspx.>
>Default.aspx in the Myapp folder will thenthat triggers>
>In the file /news/default.aspx there is a <asp:button>code to global.asax...>Sub_MyClick. But instead of reloading the same page
>([url]http://localhost/myapp/?page=news[/url]), it jumps to
>[url]http://localhost/myapp/news/default.aspx[/url].
>
>How to prevent this? I've tried to add the followingEventArgs)>
>Sub Application_EndRequest(Sender As Object, e As<> "/myapp/Default.aspx"> If Request.IsAuthenticated And Request.FilepathResponse.Redirect>And IsNothing(Request.Form("__VIEWSTATE")) = False Then>(request.urlreferrer.absoluteuri)
>End Sub
>
>....but that only created other problems.
>
>Anyone?
>
>
>.
>venkat Guest
-
John Knoop #3
Re: Postback jumps to different page
[url]http://localhost/myapp/?page=news[/url] is the same as
[url]http://localhost/myapp/default.aspx?page=news[/url]
/john
"venkat" <senthil_venkat@hotmail.com> wrote in message
news:097c01c33c72$473af3d0$a101280a@phx.gbl...> hi
>
> first let me know is this correct?
> [url]http://localhost/myapp/?page=news[/url]. /?page=news how this
> will come.
>
> regards
>
> G.Venkat> [url]http://localhost/myapp/?page=news[/url]> >-----Original Message-----
> >Hi
> >
> >Suppose this page is currently loaded:> include /news/default.aspx.> >
> >Default.aspx in the Myapp folder will then> that triggers> >
> >In the file /news/default.aspx there is a <asp:button>> code to global.asax...> >Sub_MyClick. But instead of reloading the same page
> >([url]http://localhost/myapp/?page=news[/url]), it jumps to
> >[url]http://localhost/myapp/news/default.aspx[/url].
> >
> >How to prevent this? I've tried to add the following> EventArgs)> >
> >Sub Application_EndRequest(Sender As Object, e As> <> "/myapp/Default.aspx"> > If Request.IsAuthenticated And Request.Filepath> Response.Redirect> >And IsNothing(Request.Form("__VIEWSTATE")) = False Then> >(request.urlreferrer.absoluteuri)
> >End Sub
> >
> >....but that only created other problems.
> >
> >Anyone?
> >
> >
> >.
> >
John Knoop Guest
-
andrei #4
Re: Postback jumps to different page
Hi John,
Try putting this line in your <head> section of the "news" page:
<base target="_self">
Andrei.
"John Knoop" <john.k@home.se> wrote in message
news:OeGBPlGPDHA.2284@TK2MSFTNGP11.phx.gbl...global.asax...> Hi
>
> 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
> [url]http://localhost/myapp/news/default.aspx[/url].
>
> How to prevent this? I've tried to add the following code to"/myapp/Default.aspx">
> Sub Application_EndRequest(Sender As Object, e As EventArgs)
> If Request.IsAuthenticated And Request.Filepath <>> And IsNothing(Request.Form("__VIEWSTATE")) = False Then Response.Redirect
> (request.urlreferrer.absoluteuri)
> End Sub
>
> ...but that only created other problems.
>
> Anyone?
>
>
andrei Guest



Reply With Quote

