url encode with '+'
-
hi all, i have a httphandler that returns an image when i send it text (and other parameters). The trouble is i have a need to send the string 'news + events', but the '+' is not being output at all. code in page
_HeadingTextImage.ImageUrl = "textimage.ashx?text=" + Server.UrlEncode("news+events");
code in httphandlerstring qText = (query["text"] == null) ? UsageText : context.Server.UrlDecode(query["text"]);
qText always = "news events" when i step into it. can anyone tell me how to do this please? thanks, Maurice -
hi all, i have a httphandler that returns an image when i send it text (and other parameters). The trouble is i have a need to send the string 'news + events', but the '+' is not being output at all. code in page
_HeadingTextImage.ImageUrl = "textimage.ashx?text=" + Server.UrlEncode("news+events");
code in httphandlerstring qText = (query["text"] == null) ? UsageText : context.Server.UrlDecode(query["text"]);
qText always = "news events" when i step into it. can anyone tell me how to do this please? thanks, MauriceHi you find info in below link.... http://www.albionresearch.com/misc/urlencode.php
Regards, Sandeep Kumar.V
-
Hi you find info in below link.... http://www.albionresearch.com/misc/urlencode.php
Regards, Sandeep Kumar.V
hello, thanks for the reply. that page encodes news+events as
news%2Bevents
which is what i get as input to the handler in the raw url (Request.QueryString) but when i doRequest.QueryString["qText"];
it return "news events", replacing the %2B with a space. thanks, Maurice -
hello, thanks for the reply. that page encodes news+events as
news%2Bevents
which is what i get as input to the handler in the raw url (Request.QueryString) but when i doRequest.QueryString["qText"];
it return "news events", replacing the %2B with a space. thanks, Maurice