468,310 Members | 1,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

Reprocessing request on response.redirect command???

I need some help with my ASP.NET application.

The central part of the application is very processing intensive page that
can take up to several minutes to process the complex queries and load the
aspx page (processing occurs during page load). After it loads the page
contains the datagrid (holding a result recordset) and a rather simple web
component that contains the several buttons for redirecting.

The problem occurs if the page is loaded with the massive recordset. If upon
loading a user clicks on the redirect button of the component (to, say,
redefine query) the page hangs. It does not really hang, it looks as if the
page is attempting to reprocess the request containing all the parameters it
redirects the response. Effectively, the users have to wait twice. If the
query is simple I do not experience these problems, but then again, the
processing time for a simple query is the minor.

The button being clicked has one simple line behind it:
response.redirect("targetPage.aspx"). I have tried to clear the request
buffer before sending the redirect command but that does not help.
Any ideas on how to solve the problem.
Thanks

Milan Todorovic

Nov 18 '05 #1
1 1753
The Page_Load event will occur before the event handler for the
button. Do you check the IsPostBack property in Page_Load before
performing the expensive queries and binding?

--
Scott
http://www.OdeToCode.com

On Mon, 12 Apr 2004 10:54:30 -0500, "Milan Todorovic"
<mi*************@lcu.edu> wrote:
I need some help with my ASP.NET application.

The central part of the application is very processing intensive page that
can take up to several minutes to process the complex queries and load the
aspx page (processing occurs during page load). After it loads the page
contains the datagrid (holding a result recordset) and a rather simple web
component that contains the several buttons for redirecting.

The problem occurs if the page is loaded with the massive recordset. If upon
loading a user clicks on the redirect button of the component (to, say,
redefine query) the page hangs. It does not really hang, it looks as if the
page is attempting to reprocess the request containing all the parameters it
redirects the response. Effectively, the users have to wait twice. If the
query is simple I do not experience these problems, but then again, the
processing time for a simple query is the minor.

The button being clicked has one simple line behind it:
response.redirect("targetPage.aspx"). I have tried to clear the request
buffer before sending the redirect command but that does not help.
Any ideas on how to solve the problem.
Thanks

Milan Todorovic


Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Milan Todorovic | last post: by
6 posts views Thread by Ammar | last post: by
2 posts views Thread by ad | last post: by
12 posts views Thread by Mark Rae | last post: by
2 posts views Thread by Water Cooler v2 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.