Monday, July 14, 2008

How to Encode URL using JavaScript

Encoding URL using JavaScript

u can encode url in client side using JavaScript, by using escape function in JavaScript
for Example
between script tag alert(escape(string url));

in C# URL encoding and Decoding
for encode
Server.UrlEncode(strign url)

for decode
Server.UrlDecode(strign url)

1 comment:

Author said...

For URL encoding, to convert URL to safe format. Use the tool below

encode url