Pass querystring value with special symbol

If anybody wants to pass the value from the query string which contains the special symbol like #,@ etc.

then we have to use the UrlEncode method of the httpUtility.

suppose if u want to pass the value C# Programming and u are not using the UrlEncode then u will get query string value only C

but if u want the correct value of the querystring then u have to use the UrlEncode. U can use that like this:

string value="C# Programming";


and pass that value with the querystring.