Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?
ASP.NET and .NET WEB Questions and Answers
(Continued from previous question...)
Suppose you want a certain ASP.NET function executed on MouseOver overa
certain button. Where do you add an event handler?
It’s the Attributesproperty,
the Add function inside that property. So
btnSubmit.Attributes.Add("onMouseOver","someClientCode();")
A simple”Javascript:ClientCode();” in the button control of the .aspx
page will attach the handler (javascript function)to the onmouseover event.
(Continued on next question...)
Other Interview Questions
|