Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.Transfer not working

Status
Not open for further replies.

aimlion11yahoo

Instructor
Jul 20, 2006
42
US
I have a *.aspx and a *.aspx.vb page. The code-behind page calls a sub in a module. If an exception occurres in the sub, I want to redirect to an error page. How do you do that?
 
Use a Try..Catch block. Return the error to your page, if there is an error(excception) then redirect.
 
Thanks.
That is what I am doing. I was looking for a way to redirect from the sub. Actually, it is a sub calling another sub calling a function. I assume from your answer that transfer and redirect will only work from the web page, yes?
 
Thanks for confirming that, jbenson001.
I'll stop trying to figure it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top