Suppose you want a certain ASP.NET function executed on
MouseOver over a certain button. Where do you add an event
handler?



Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do y..

Answer / guest

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 .aspxpage will attach the handler (javascript
function)to the onmouseover event

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Write a code snippet to implement the indentation in json in web api.

0 Answers  


What is the difference between excute query and excute nonquery.?

4 Answers  


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

0 Answers   Accenture, Value Labs,


What is http post and http get?

0 Answers  


What are the session variables?

0 Answers  






How do I publish my asp.net application to my isp's web server?

0 Answers  


Can we change the session timeout in ASP.NET, if yes then how and from where?

7 Answers   L&T,


what is NET Framework ?

4 Answers   TCS,


What is the significance of attaching a profile while creating a user?

0 Answers   MCN Solutions,


What r all the controls in ASP.NET ?

3 Answers  


What is sdlc process?

0 Answers  


What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable

2 Answers   Syntax Softtech,


Categories