If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Passing Last, First in a queryString won't work.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-04, 16:02
justmeleah justmeleah is offline
Registered User
 
Join Date: Jun 2002
Location: Vienna, VA
Posts: 53
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
Reply With Quote
  #2 (permalink)  
Old 01-13-04, 17:21
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
In theory you should be able to replace the space with %20 and that may solve your problem....
Reply With Quote
  #3 (permalink)  
Old 01-13-04, 22:44
gyuan gyuan is offline
Registered User
 
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>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On