Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Evening To All. In my project i use error page if any error occur then redirect to error page that is working well in Javascript But not redirect from code behind in hosting server only worked in localhost my code is
HTML
Server.Transfer("~/ErrorPage.aspx?err=" + ex);
Please any one give solution to me as soon as possible.



Thanks in Advance


Meganathan M
Posted
Updated 23-Mar-12 2:33am
v2
Comments
[no name] 23-Mar-12 8:36am    
Does it give you any error..?

see this[^]. Use Response.Redirect(url).

furthermore you can define an errorpage in your web.config. see here[^]
 
Share this answer
 
 
Share this answer
 
Comments
CHill60 14-Aug-15 6:40am    
Question is over 3 years old and already answered. At the very least you could have used the link that actually solved the problem for the OP at the end of the link you did provide.

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