Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what will happen when response.redirect(page.aspx , true or false ) in asp.net is used can any one exaplin me in plain English with some example ?
Posted
Comments
ridoy 20-Aug-12 13:44pm    
See it from MSDN blog..then it will more useful to you to understand.

 
Share this answer
 
Comments
Prasad_Kulkarni 21-Aug-12 4:53am    
Yep. A +5
Manas Bhardwaj 21-Aug-12 5:13am    
Thx Prasad!
This[^] article explains response.redirect. It's pretty simple. It redirects you to another page.

Here[^] are the docs for the overload that takes a bool. The bool says if the current response should terminate ( I think the default is true )
 
Share this answer
 
C#
public void Redirect (string url,bool endResponse)


we write Response.Redirect("url",True/False);

url(1st parameter)
The target location.

endResponse(2nd parameter)
Indicates whether execution of the current page should terminate.
By default it is true if you won't provide this Boolean value.

try this link
http://msdn.microsoft.com/en-us/library/a8wa7sdt(v=vs.80).aspx[^]
 
Share this answer
 
v3
Comments
Apurva Kunkulol 30-Jan-14 8:52am    
If I use the Overload i.e. Response.Redirect(string,bool) that still skips the next step and executes the step after it. How do I work around it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900