New'b and logon page

Discussion in 'ASP .Net Security' started by James Rasmussen, Oct 3, 2003.

  1. I started a new logon page using Web Matrix. How do I redirect to some other
    page besides default.aspx? Where does it go in the code? I have tried
    "Response.Redirect(\\servername\page.aspx)", but I get this "Compiler Error
    Message: BC30201: Expression expected."
    TIA for the help!!

    Jim
     
    James Rasmussen, Oct 3, 2003
    #1
    1. Advertisements

  2. The GetRedirectUrl always returns the URL from the querystring, and if none
    is present it always returns default.aspx - I am not aware of any way to
    modify the default return value of this function. A Response.Redirect is the
    way to handle this and does work - your URL needs to be in quotes, however,
    as it is expecing a String variable.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows XP
    Windows XP Associate Expert
    --
    "James Rasmussen" <> wrote in message
    news:...
    > I started a new logon page using Web Matrix. How do I redirect to some

    other
    > page besides default.aspx? Where does it go in the code? I have tried
    > "Response.Redirect(\\servername\page.aspx)", but I get this "Compiler

    Error
    > Message: BC30201: Expression expected."
    > TIA for the help!!
    >
    > Jim
    >
    >
     
    Chris Jackson, Oct 6, 2003
    #2
    1. Advertisements

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. Randall Parker

    Pros and cons for using https on a logon page?

    Randall Parker, Dec 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,207
    nimd4
    May 17, 2014
  2. Doug
    Replies:
    2
    Views:
    1,688
  3. armandotop
    Replies:
    2
    Views:
    459
    Peter Jansson
    Apr 13, 2005
  4. Kjell Kristiansson
    Replies:
    0
    Views:
    430
    Kjell Kristiansson
    Nov 30, 2005
  5. Ben Ong
    Replies:
    0
    Views:
    208
    Ben Ong
    Feb 1, 2005
  6. Targa
    Replies:
    1
    Views:
    297
    Randy Webb
    Jun 6, 2004
  7. Replies:
    2
    Views:
    668
  8. Replies:
    2
    Views:
    768
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
Loading...