Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I'm getting an error "Error executing child request for ShowResult.aspx.",
when i am using Server.Transfer("ShowResults.aspx").
It is working fine on local machine, but when i deploy it on server, it display above error.

I want to use only Server.Transfer not Response.Redirect cause i have to pass the parameters.

what should i do ? Any help ?


Thanks in advance,
Varshini M.
Posted
Updated 10-Jul-11 22:52pm
v2

Try the following instead of Server.Transfer

HttpContext.Current.RewritePath("somefile.aspx");


Hope it helps
 
Share this answer
 
Comments
Varshini2009 11-Jul-11 5:31am    
Thanks for the fast reply,

But, I'm using PreviousPage property to pass the values to the next page. When i'm using the below line of code
PreviousPage is becoming null.

HttpContext.Current.RewritePath("somefile.aspx");

Can you please suggests

Thanks in advance,
Varshini M.

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