472,799 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

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 1891
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
4
by: JC | last post by:
Hi, I have a simple question regarding the Response.Redirect method. Does the server stop processing the ASP code as soon as it encounters the Redirect command? Or does it ever continue to...
6
by: Agoston Bejo | last post by:
Hi. x1.asp: <form method="post" action="x2.asp"> .... </form> x2.asp: DoSomeAdministration() Response.Redirect "x3.asp?" & Request.Form x3.asp: further processsing of data
1
by: Milan Todorovic | last post by:
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...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
2
by: ad | last post by:
I have tree web page A.ASPX, B.ASPX and CheckPW.aspx There is a button in A.ASPX, the click of that button is redirect to B.ASPX .. I write a Page_Load event in b.aspx, if the Session is null...
12
by: Mark Rae | last post by:
Hi, See the previous thread Request.Form abuse in this newsgroup... I'm looking for a simple and efficient way to prevent people hijacking the <formtags on my websites and using them to send...
1
by: Joe | last post by:
In ASP.NET 1.1 I could detected expired form authentication tickets (which closely coincide with my expired session) by checking for the Authentication Cookie when the login screen loads. If the...
2
by: Water Cooler v2 | last post by:
Normally, in ASP.NET applications, we read from a Request object and write to the Response buffer. However, I wish to read the request object, do some validations on it, and route the request to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.