I believe when I was reading through unleashed, I saw a function that converts strings to a nice webform and back again, but I can't remember, and I can't find it again, LOL...
Basically,
What I want to do:
I email users a web address containing their email and validation code
example:
http://mySite.com/verify.aspx?User=<user name>&Code=<code
now this is working awesome, except, if the username had a space in it, the system falls down (as the link stops where the space is)
so basically, I wanna know if there is a function I can run on the string containing the web address that will convert the spaces to %20, and if there is a function that converts it back again (%20's to a space).
I'm sure I could code my own function and put it in a namespace or something, but it'd be so much nicer if there was a default function (YAY)
is there? or am I stark raving mad?!?! lol
Thanks for your help
-AshleighHi Ashleigh
Perhaps the "Server.URLEncode" and "Server.UrlDecode" will help you.
0 comments:
Post a Comment