NUnitAsp

HtmlTagTester.Children Method 

Returns the immediate children of this tag that match a particular type (such as <tr>). Does not return "grand-children" -- i.e., calling table.Children("tr") will work, but calling table.Children("td") will typically return nothing because the 'td' tags are nested inside 'tr' tags.

Don't cache the results of this call.

public HtmlTagTester[] Children(
   string tag
);

Parameters

tag
The type of tag to return. Don't include angle brackets.

Return Value

The tags, or an empty array if none.

Example

To get all rows in a table:

HtmlTagTester[] rows = table.Children("tr");

See Also

HtmlTagTester Class | NUnit.Extensions.Asp Namespace