realy urgent ..............

Last post 11-10-2008 8:25 AM by JZoerman. 3 replies.

Sort Posts:

  • realy urgent ..............

    11-09-2008, 7:44 AM
    • Member
      point Member
    • silence-1st
    • Member since 11-06-2008, 1:08 PM
    • Posts 6

    I have the followin scenario:

    I have Default.aspx  which is the start page for my site , login.aspx which redirects successful logins to my 3rd page  main.aspx

    I am using a loginstatus control  in Default.aspx page

    The problem is  whenever I click on the login  from my Default.aspx  it redirects me to login.aspx  BUT with QueryString of the path of Default.aspx being passed to login.aspx causing any successful login to be redirected to Default.aspx , although its supposed to go to main.aspx …

    However everything is set correctly..

    please Anyone can help here ??

  • Re: realy urgent ..............

    11-09-2008, 2:16 PM
    Answer
    • Participant
      845 point Participant
    • JZoerman
    • Member since 08-24-2006, 2:27 AM
    • FL, U.S.
    • Posts 201

    You can do a Response.Redirect in the LoggedIn event of your login page to override the ?ReturnURL. This is kinda of a hack in my opinion, but until someone comes up with something better, it will work.

    JZ

    Don't believe everything you think

    Sarasota Web Design
  • Re: realy urgent ..............

    11-10-2008, 6:40 AM
    • Member
      point Member
    • silence-1st
    • Member since 11-06-2008, 1:08 PM
    • Posts 6

    thanx ... 

     i already did that and its workin , but its not supposed to be like that ... its supposed to work will with the distenationpageurl..

    anyway , thanx alot

    :)

  • Re: realy urgent ..............

    11-10-2008, 8:25 AM
    • Participant
      845 point Participant
    • JZoerman
    • Member since 08-24-2006, 2:27 AM
    • FL, U.S.
    • Posts 201

    I hear ya, that's why I called it a hack. Ideally you want to define the ReturnURL for the login staus control but there seems to be no easy way to do that.

    Don't believe everything you think

    Sarasota Web Design
Page 1 of 1 (4 items)
Microsoft Communities