Hi, I am executing one of my URL to return string. Its working fine except its throwing error if I pass any special character.
In the given code, I am passing one variable which I am using inside that URL as Request.Form["n1"] variable.
That variable value is a long string so I cannot pass it as querystring, so I am passing like this but the problem is that when there is any special character like & or <>, it is throwing error and not executing URL. I tried using "HTMLEncode" also before passing this value but still same problem.
Here is my code.
######################################################
string strNewValue;
string strResponse;
// Create the request obj
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://localhost/ ...
Go to the complete details ...