Actually I have a custom control that renders as a <div>.
Now I want to add a DefaultButton property to it, just like a normal Panel control has.
When I do the same thing in my custom control, it errors out with the message saying that WebForm_FireDefaultButton is not defined (which is obvious at present, because I don't know how to tell asp.net engine include it).
I don't want to hard-code the script in my control. I want it to include whatever way other asp.net controls like (Form, Panel etc.) do it.
Anyone has any ideas about this?