Click here to Skip to main content
16,022,924 members

Comments by Pravat_Sahoo (Top 3 by date)

Pravat_Sahoo 12-Mar-14 5:02am View    
what you are trying to say i understood nicely. Ok thanks...But you didnot getting my questing thats why you wrote this type of answer.
scenario 1-
The Output of this one is that it will redirect the page to 3.aspx as on try block this will throw a redirect error but after catch block the control will go to the finally block which will redirect the page to 3.aspx..
Scenario 2-
In the Second case we are using Server.Transfer which will directly transfer the current page to show the contents of the page to be redirected keeping the url address as the same.. IN this case it will move through all three blocks and would show the contents of 1.aspx, 2.aspx and 3.aspx from the main page... ie., if we are transferring from main.aspx then it will show the contents of 1.aspx plus the content of 2.aspx and the content of 3.aspx in main.aspx
Pravat_Sahoo 12-Mar-14 4:05am View    
Thanks Andrew for example.
But in first scenario the output is 3.aspx.
on try block this will throw a redirect error but after catch block the control will go to the finally block.
Pravat_Sahoo 12-Mar-14 4:02am View    
Deleted
In first Scenario i ma littlebit conformed,
The Output of this one is that it will redirect the page to 3.aspx as on try block this will throw a redirect error but after catch block the control will go to the finally block which will redirect the page to 3.aspx>
But in second scenario now i am trying.