URL Encoding

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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?
 
Back
Top