Click here to Skip to main content
16,021,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing issue after upgrading 2.0 to 4 , scenario is in few pages where i need to transfer data from one page to other page using


Page previousPage = (Page)HttpContext.Current.PreviousHandler;
if (previousPage != null)
{

}


this code worked fine using Server.Transfer
but after upgrade i had to use Sputility.Redirect this is resulting previousPage as null.

Note: In this if try using Server.Transfer it works fine but if any event fired on this page gives me error

This Page has been modified since you opened it. You must open the page again.


Please guide me using how can i achieve PreviousHandler property using Sputility.Redirect
Posted

1 solution

 
Share this answer
 
Comments
tanveersmk 14-Sep-12 1:36am    
google/bing brought me here :(

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