Sometimes values will have an "&" in them, and when this occurs, my syntax does not error, but it stops parsing the passed value at the "&". How can I handle the "&" character so that it keeps the string together?
http://www.bakedzititipsforanyonewithlittleknowledge/first.aspx?vax=Red%20&%20Black,Fire,House,Basket,Blanket
string fulladdress = HttpContext.Current.Request.Url.AbsoluteUri;
string encodedString = System.Web.HttpUtility.UrlEncode(fulladdress);
string Information = Request["vax"];
Information = Information.Replace("&", "%26");
Response.Write(vax);
And I am calling this from an external program so I can not use the + Server.UrlEncode(value));
at the end of my website in the call. I have to format a different way.
EDIT ---
Sample output:
Red & Black
Fire
House
Basket
Blanket
What I am getting is
?vax=Red%20&%20Black
Fire
House
Basket
Blanket