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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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