how can I set the url encode in asp3 similar to the asp.net code
Public Shared Function UrlEncode ( _
str As String, _
e As Encoding _
) As String
how can I pass the encoding type?
Simply call UrlEncode and as the second parameter specify the encoding
http://msdn.microsoft.com/en-us/library/h10z5byc.aspx
This same overload is supported in .net 3 so you should be good.
Use Server.URLEncode(string) for classic asp.
<% response.write(Server.URLEncode("http://www.myurl.com?param1=value1¶m2=value2")) %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With