ReturnUrl

Discussion in 'ASP .Net' started by =?Utf-8?B?Ym9iYnk=?=, Sep 28, 2007.

  1. Hi,

    I have three pages. Login page, Default.aspx and admin.aspx. There is link
    inDefault.aspx page which redirects to admin.aspx page. But I want the
    ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
    string. But when I click on page it simply redirects me to that page but
    doesn't show ReturnUrl in the bwoser.
     
    =?Utf-8?B?Ym9iYnk=?=, Sep 28, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?Ym9iYnk=?=

    Jon Guest

    On 28 Sep, 01:50, bobby <> wrote:
    > Hi,
    >
    > I have three pages. Login page, Default.aspx and admin.aspx. There is link
    > inDefault.aspx page which redirects to admin.aspx page. But I want the
    > ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
    > string. But when I click on page it simply redirects me to that page but
    > doesn't show ReturnUrl in the bwoser.


    Are you using forms authentication and set that all up in the
    web.config?
     
    Jon, Sep 28, 2007
    #2
    1. Advertising

  3. Yes.

    "Jon" wrote:

    > On 28 Sep, 01:50, bobby <> wrote:
    > > Hi,
    > >
    > > I have three pages. Login page, Default.aspx and admin.aspx. There is link
    > > inDefault.aspx page which redirects to admin.aspx page. But I want the
    > > ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
    > > string. But when I click on page it simply redirects me to that page but
    > > doesn't show ReturnUrl in the bwoser.

    >
    > Are you using forms authentication and set that all up in the
    > web.config?
    >
    >
     
    =?Utf-8?B?Ym9iYnk=?=, Sep 28, 2007
    #3
  4. On Sep 28, 2:50 am, bobby <> wrote:
    > I have three pages. Login page, Default.aspx and admin.aspx. There is link
    > inDefault.aspx page which redirects to admin.aspx page. But I want the
    > ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
    > string.


    HyperLink1.NavigateUrl ="admin.aspx?ReturnUrl=" +
    Server.UrlEncode(HttpContext.Current.Request.RawUrl);
     
    Alexey Smirnov, Sep 29, 2007
    #4
    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. Tomk

    ReturnURL

    Tomk, Jan 23, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    727
  2. AC
    Replies:
    0
    Views:
    525
  3. Gala Grant

    remove "ReturnUrl=" from url

    Gala Grant, Nov 24, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    842
    Patrick Olurotimi Ige
    Nov 26, 2004
  4. VB Programmer
    Replies:
    1
    Views:
    1,037
    Steve C. Orr [MVP, MCSD]
    Dec 8, 2004
  5. tshad
    Replies:
    2
    Views:
    11,452
    tshad
    Jan 21, 2005
Loading...

Share This Page