Name

HttpUtility

Synopsis

This class provides static (shared) helper methods. The UrlEncode() and UrlDecode() methods are the same as those provided by the HttpServerUtility class for encoding a string into a format that’s safe for use in a URL. Additionally, a UrlEncodeToBytes() method is provided to convert a string into an array of bytes and a UrlEncodeUnicode() method converts a string into a Unicode (wide-character) string.

Public NotInheritable Class HttpUtility
                  ' Public Constructors
   Public Sub New() 
' Public Shared Methods
   Public Shared Function HtmlAttributeEncode(
        ByVal s As String) As String  
   Public Shared Sub HtmlAttributeEncode(ByVal s As String, 
        ByVal output As System.IO.TextWriter) 
   Public Shared Function HtmlDecode(
        ByVal s As String) As String  
   Public Shared Sub HtmlDecode(ByVal s As String, 
        ByVal output As System.IO.TextWriter) 
   Public Shared Function HtmlEncode(
        ByVal s As String) As String  
   Public Shared Sub HtmlEncode(ByVal s As String, 
        ByVal output As System.IO.TextWriter) 
   Public Shared Function UrlDecode(ByVal bytes As Byte(), 
        ByVal e As System.Text.Encoding) As String  
   Public Shared Function UrlDecode(ByVal bytes As Byte(), 
        ByVal offset As Integer, ByVal count As Integer, 
        ByVal e As System.Text.Encoding) As String  
   Public Shared Function UrlDecode(
        ByVal str As String) As String  
   Public Shared Function UrlDecode(ByVal str As String, 
        ByVal e As System.Text.Encoding) As String  
   Public Shared Function UrlDecodeToBytes( ByVal bytes As Byte()) As Byte() Public Shared Function ...

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.