Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Location
    Vienna, VA
    Posts
    53

    Unanswered: Passing Last, First in a queryString won't work.

    I'm trying to pass a name in Last, First format, to be used in an asp link like this

    <a href='mypage.asp?Smith, John>Smith, John</a>

    However, the link always comes out stopping after the comma, but the name displays properly on the screen. I'm forced to use Netscape 7, by the way.

    Does anyone know how to either fix the name so it links and passes properly? Or, whether it's a netscape thing and I need to create a NameID key and pass that instead?

    Thanks!


    Leah

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    In theory you should be able to replace the space with %20 and that may solve your problem....

  3. #3
    Join Date
    Dec 2003
    Posts
    454
    <a href="mypage.asp?name=Smith, John">Smith, John</a> works on IE, but I do not know if it works on Netscape 7 too.

    Try this on Netscape 7:

    <a href="mypage.asp?name=<%=Server.URLEnCode("Smith, John")%>">Smith, John</a>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •