small <a href> problem

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

I have a popup link below:-
<a href=javascript:popup('ShowCorpFeatures.aspx?order_id=" & strID &
"&p_name=" & p_ID & "','1',600,540,'no') style='text-decoration:
underline;'><b>" & p_ID & "</b></a>

My Quesrystring link below works well but it seems not to show the right
data at :-"&p_name=" & p_ID & "
i noticed if p_id has a short string like "dog" its fine but if its longer
for example "dog goodies" it doesn't show all but just shows "dog" and
leaves
out the rest.

Any ideas?
 
you cant include space character directly in querystring. instead you should
use Server.UrlEncode and Server.UrlDecode methods. space caracters will
replaced with %20 which decimal equivalent 32 corresponds to space
characters ASCII code
 
Thx the Crow for the reply
and Yes i know that.
But the thing is it works when i don't use the Javascript:popup script.
I was thinking i was missing a quote or something js isn't understanding..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top