page.findcontrol: input type="button"
I have an html button on an asp.net page and wish to add attributes to it at runtime. With a server control, I would just use mycontrol.attributes.add(..).
However, the issue I'm running into is setting the attributes at page_load.
I am unable to find the control using something like:
dim myBtn as HtmlInputButton = ctype(page.findcontrol("btnAddGroup"),HtmlInputButton)
The button is declared as follows:
<input id="btnAddGroup" type="button" value=">>" class="btn" />
How can add attributes to this control at runtime?