asp.net.ph

HttpUtility.aspxAttributeEncode Method ( String )

System.Web Namespace   HttpUtility Class


Minimally converts a string to an HTML-encoded string.

[ VB ]
Overloads Public Shared Function HtmlAttributeEncode ( _
   ByVal s As String _
) As String

[ C# ]
public static string HtmlAttributeEncode (
   string s
);

[ C++ ]
public: static String* HtmlAttributeEncode (
   String* s
);

[ JScript ]
public static function HtmlAttributeEncode (
   s : String
) : String;

Parameters

s
The string to encode.

Return Value

The encoded string.

Remarks

HtmlAttributeEncode converts only quotes ( " ) and ampersands ( & ) to equivalent character entities. It is considerably faster than the HtmlEncode methods.

See Also

HttpUtility Members   HttpUtility.aspxAttributeEncode Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph