Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing parameter from hyperlink with spaces 1

Status
Not open for further replies.

fegdvbna22

Programmer
Aug 9, 2006
52
GB
What do you do when you have for example a page that you are passing a parameter to from a hyperlink which has spaces in the text? I am clicking on a hyperlink 'Opps 90', and this value must be passed to the next page, and then passed back if they press the Back button on this page. But it is read as 'OppsType=Opps%2090' when I click through, and not 'OppsType=Opps 90.
 
When you do Request.QueryString("OppsType"), it should turn back into the regular string, or you can wrap it in a Server.UrlDecode(Request.QueryString("OppsType")), which I think will give you the same thing
 
Try looking at the HTMLEncode and HTMLDecode methods


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top