Redirecting to a new page from a class library

Discussion in 'ASP .Net' started by William Gower, Jul 27, 2004.

  1. When the user logins to the web app, I instantiate my controller class and
    call a validate method. From the controller object I want to forward the
    user to a web page depending upon the success or failure of the log in. How
    do I do a redirect from the class library?
     
    William Gower, Jul 27, 2004
    #1
    1. Advertising

  2. System.Web.HttpContext.Current.Response.Redirect(url);

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "William Gower" <> wrote in message
    news:...
    > When the user logins to the web app, I instantiate my controller class and
    > call a validate method. From the controller object I want to forward the
    > user to a web page depending upon the success or failure of the log in.

    How
    > do I do a redirect from the class library?
    >
    >
     
    Kevin Spencer, Jul 27, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bienwell
    Replies:
    1
    Views:
    2,289
    =?Utf-8?B?U3RldmUgQy4gT3Jy?=
    Feb 23, 2006
  2. =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==

    Redirecting to a New Page Returns ASP_SMARTNAV_RDIR

    =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==, Jan 16, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    567
    =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==
    Jan 16, 2007
  3. Martin Arvidsson, Visual Systems AB

    Q: Getting values when redirecting to a new page...

    Martin Arvidsson, Visual Systems AB, Apr 3, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    287
    Cowboy \(Gregory A. Beamer\)
    Apr 3, 2008
  4. Guest
    Replies:
    4
    Views:
    471
    Guest
    Oct 9, 2008
  5. Simon960

    Redirecting an ASMX page to a new server

    Simon960, Jan 10, 2007, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    1,034
    RYoung
    Jan 13, 2007
Loading...

Share This Page