Reputation: 11916
In Response.redirect ("Page.aspx",bool end response), How do I transfer the page and come back to to the same execution point?
I mean to say how can I use the bool value for my programming purpose.
Please let me know
Upvotes: 0
Views: 201
Reputation: 705
You could to start run all your operation in another thread and then only do response.redirect("someurl"), i.e.
reponse.redirect("some.aspx");
myoperation();
myoperation1();
replace this code on
ThreadPool.QueueUserWorkItem(delegate
{
myoperation();
myoperation1();
});
Response.Redirect("some.aspx");
Upvotes: 1
Reputation: 49984
To answer your specific questions:
Upvotes: 0
Reputation: 10356
If i understand "come back to the same execution point" correctly, you might consider using Server.Execute
instead.
Executes the handler for a specified resource in the context of the
current request and returns execution to the page that invoked it.
Upvotes: 3
Reputation: 13825
I think you can create a session variable and stock the "starting point"(url) in the variable. After that you can get the "starting point" from anywhere and go back to this page..
(If it is want you want to do..)
Upvotes: 1