Since Response is a member of Page class, You can use
objUtil.Response.Redirect("some_page_here.aspx")
HTH
Elton Wang
elton_Wang@hotmail.com
"Ryan Ternier" wrote:
[color=blue]
> The software project I'm running uses a lot of helper classes.
>
> I have the habbit of catching errors in any place they occur, but I'm
> having troubles with one particular spot.
>
> I didn't code this project to automatically regenerate Sessions when the
> website updates. So when the website updates (new DLL, web.config edited
> etc.) the sessions are lost, and the users are kicked.
>
> The error is always caught inside my User class (which defines
> everything about the logged in user).
>
> When an error occurs in this class, I tried to do:
>
> dim objUtil as new Utility(Utility inherits Page)
> objUtil.Redirect("some_page_here.aspx")
>
> But this errors and tells me I cannot redirect like this.
>
> Is there a way of having a flag set inside that class which calls a
> function on the calling page allowing it to redirect to the login page
> so they can log in again.. and not get an error page telling them to log
> in again...
>
>
> /RT
>[/color]