Well, I thaught i wasn’t going to write any javascript this time and lets make a general function which can take any parent control and reset all the sub controls. The functoin can definitely be extended to add more parent and sub controls type but this is just a kick start 🙂
public static void resetAllControls(object parent)
{
if (parent is HtmlTable)
{
HtmlTable tbl = (HtmlTable)parent;
foreach (HtmlTableRow row in tbl.Rows)