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

Answers were Sorted based on User's Feedback



Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do yo..

Answer / srujana

It?s the Attributesproperty, the Add function inside that
property. So
btnSubmit.Attributes.Add("onMouseOver","someClientCode();")

Is This Answer Correct ?    23 Yes 0 No

Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do yo..

Answer / subhash saini

actully this is depend on which type of function u want to
call on (server side or client side). If one want to call
client side than we have to add attribute, and if wanaa to
call server side function that make that function as a web
method and call that function by ajax.


Might be this help you.

Happy Programming.

Is This Answer Correct ?    9 Yes 0 No

Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do yo..

Answer / kalyan

No it is impossible to do so. it is because servere side
methods can not be called from client side. the only way to
do so is to submit the page.

Is This Answer Correct ?    2 Yes 15 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between Trace and Debug?

2 Answers   BirlaSoft,


Why select Web API?

0 Answers  


What is cross page posting? How is it done?

0 Answers  


How to check the end of the record in Datareader?

2 Answers   Cognizant,


asp.net page is a object or not?

5 Answers  






What are asynchronous callbacks ?

6 Answers   Accenture, BirlaSoft,


Explain what is an abstract class?

0 Answers  


Explain the working of passport authentication.

0 Answers  


State management in asp.net ?

8 Answers   Accenture,


How many column in table of sql server?

3 Answers  


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

0 Answers  


How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)

2 Answers  


Categories