NUnitAsp

HtmlTagTester.AttributeAsIntWithNegOneDefault Method 

Returns an attribute as an integer, or -1 if the attribute isn't present. Throws an exception if the attribute isn't an integer.

public int AttributeAsIntWithNegOneDefault(
   string name
);

See Also

HtmlTagTester Class | NUnit.Extensions.Asp Namespace