UrlEncode - encodes a string and returns the encoded string.
public string UrlEncode( string s )
s - The text to URL - encode.
Type: System.String - The encoded text.
String UrlString = "url encoder";
String EncodedString = Server.UrlEncode( UrlString );
Response.Write( "http://example.com/?param=" + EncodedString );
http://example.com/?param=url+encoder