URL Encoding

G

Guest

I send a parameter via a hyperlink in an anchor tag. The URl may contain things like "xyz=123 # 3". In this scenario, the value being returned in Request.Params["ParmName"] is "123". The remaining " # 3" is being lost. I figure there is some way to handle with encoding. Is this correct? Any insight or referrals to specific articles?
Thanks,
Larry
 
S

Steve C. Orr [MVP, MCSD]

Use the Server.URLEncode method.
Here's more info:
http://www.4guysfromrolla.com/webtech/042601-1.shtml

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net



Larry said:
I send a parameter via a hyperlink in an anchor tag. The URl may contain
things like "xyz=123 # 3". In this scenario, the value being returned in
Request.Params["ParmName"] is "123". The remaining " # 3" is being lost. I
figure there is some way to handle with encoding. Is this correct? Any
insight or referrals to specific articles?
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top