PagePorter Class Library

HtmlTag.ParseAttributes Method 

Parses an HTML attributes string into attribute name/value pairs.

[Visual Basic]
Public Sub ParseAttributes( _
   ByVal tagContent As String _
)
[C#]
public void ParseAttributes(
   string tagContent
);

Parameters

tagContent
The HTML attributes string to parse into attribute/name value pairs.

Remarks

The ParseAttributes method parses the input string and places the resulting HTML attribute/value pairs into the HtmlTag object's internal member variables. Any previous values are overwritten.

The HTML attributes string should not include the enclosing angle brackets (< and >), nor should it contain the HTML tag. For example:

<table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%">
should be passed to this method as:
dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"

See Also

HtmlTag Class | Parastream.Web.UI Namespace