Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written following code to redirect ..I just a bit confused that when control will move inside if block and will perform redirection..
C#
if (Page.IsCallback)
{
  Response.Redirect("/include/information/error_404.aspx");
}
Posted
Updated 6-Sep-13 1:13am
v2
Comments
k@ran 6-Sep-13 7:12am    
i mean when page.isCallback will be true

1 solution

Refer these two links and you will be clear what happens here with your code.

Difference between a Postback and a Callback[^]

Page.IsCallback Property [msdn][^]

Regards..:)
 
Share this answer
 

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