asp.net.ph

HttpUtility.aspxAttributeEncode Method ( String, TextWriter )

System.Web Namespace   HttpUtility Class


Minimally converts a string into an HTML-encoded string and sends the encoded string to a TextWriter output stream.

[ VB ]
Overloads Public Shared Sub HtmlAttributeEncode ( _
   ByVal s As String, _
   ByVal output As TextWriter _
)

[ C# ]
public static void HtmlAttributeEncode (
   string s,
   TextWriter output
);

[ C++ ]
public: static void HtmlAttributeEncode (
   String* s,
   TextWriter* output
);

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

Parameters

s
The string to encode
output
A TextWriter output stream.

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