building a link syntax

Discussion in 'ASP General' started by shank, Nov 8, 2004.

  1. shank

    shank Guest

    http://www.mydomain.com/customer.as...d1=18 ches st #2 city=chicago&st=il&zip=12345

    I build the above link dynamically from the customer's input. It works fine
    until they put inthe '#' symbol. The result is the string works up to that
    point, then breaks. The trailing information is lost. I use the above to
    fill-in form boxes. What can I replace '#' with that will allow the string
    to continue? ... and of course, be placed in the form box correctly.

    thanks
     
    shank, Nov 8, 2004
    #1
    1. Advertising

  2. Instead of just

    link = "yourstuff" & "customerstuff"

    Use

    link = "yourstuff" & server.UrlEncode("customerstuff")

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "shank" <> wrote in message
    news:#...
    >

    http://www.mydomain.com/customer.as...d1=18 ches st #2 city=chicago&st=il&zip=12345
    >
    > I build the above link dynamically from the customer's input. It works

    fine
    > until they put inthe '#' symbol. The result is the string works up to that
    > point, then breaks. The trailing information is lost. I use the above to
    > fill-in form boxes. What can I replace '#' with that will allow the string
    > to continue? ... and of course, be placed in the form box correctly.
    >
    > thanks
    >
    >
     
    Aaron [SQL Server MVP], Nov 8, 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. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    904
    Kevin Spencer
    May 17, 2005
  2. =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=

    building an Href link ??

    =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=, Oct 7, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    456
    =?Utf-8?B?U2l2YSBN?=
    Oct 7, 2005
  3. Tin Gherdanarra

    syntax errors while building pypgsql

    Tin Gherdanarra, Nov 23, 2005, in forum: Python
    Replies:
    9
    Views:
    377
    Tin Gherdanarra
    Nov 23, 2005
  4. redcic
    Replies:
    2
    Views:
    563
    roy axenov
    Mar 2, 2007
  5. Midex
    Replies:
    24
    Views:
    957
Loading...

Share This Page