Mega Code Archive

 
Categories / ASP.Net Tutorial / Development
 

Server UrlPathEncode

<%@ Page Language="VB" %> <html> <head>    <title>Encoding URL Strings</title>    <script runat="server">       Sub UrlPathEncode()          Dim StrToEncode As String          Dim StrToReturn As String          StrToEncode = "UrlPathEncode.aspx?Arg=foo"          StrToReturn = Server.UrlPathEncode(StrToEncode)          Response.Write("<a href=""" & StrToReturn & """>" & StrToReturn & "</a>")       End Sub    </script> </head> <body> <% UrlPathEncode %> </body> </html>