I'm trying to get a reference to the HTML button control using the FindControl method but this can't seem to find the button on my page e.g.
myButton = ctype(me.controls.findcontrol("btnPrint"),HtmlButton))
I'v tried doing...
myButton = ctype(me.controls("Form1").controls.findcontrol("btnPrint"),HtmlButton))
but that doesn't work either, they both return Nothing
So how do I get a reference to an HTML control?