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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the security certificates used in webservices?

1716


What’s the difference between asp.net web forms and asp.net mvc?

783


How would you create a permanent cookie?

780


How do u declare static variable and how it is declared and what is its lifetime?

731


Which is better session or viewstate?

693


Which method do you use to kill explicitly a users session?

816


Explain why datareader is useful?

747


What’s the difference between response .redirect and server.transfer?

718


What should you do is you want to remove an existing component but would like to make some funtionalities?

1719


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2368


What are the difference between overriding and overloading?

697


Define resource files.

732


What is caching in asp.net?

748


I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

738


What is content page in asp net?

689