Where do you add an event handler?

It’s the Attributesproperty, the Add function inside that property.

e.g. btnSubmit.Attributes.Add("onMouseOver","someClientCode();")