NUnitAsp

HtmlTagTester.HasChildren Method 

Returns 'true' if this tag has any immediate children that match a particular type (such as <tr>. Does not check "grand-children" -- i.e., calling table.HasChildren("tr") will usually return true and calling table.HasChildren("td") will usually return false.

public bool HasChildren(
   string tag
);

Parameters

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

See Also

HtmlTagTester Class | NUnit.Extensions.Asp Namespace