Hi,
This could be either easy or tough depending on how users are getting to
your login page. Are they clicking a button or clicking a link? If they
are clicking a button that causes a postback and then you redirect this will
be easy. Just create a quick session variable and put in the page that
performed the redirect before you redirect. Then from your login just
assign that Session variable to a string, set that Session variable to
Nothing, and redirect them back. If you are using a hyperlink then I'm not
sure how you would do it. Maybe do a search on Environment variables that
IIS holds, maybe one of those holds the page they came from. Other than
that you'd have to hand code it. Or create a class that inherits
System.Web.UI.Page, add code to the Page_Load of that base class to store
the current page in the session, and then inherit that page whereever you
have a link to the login page. Don't inherit the login page from this.
Good luck! Ken.