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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of Get method and how much data it can store?

778


What is protected configuration?

820


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2137


Define web services in asp.net.

742


What is httpresponse?

705


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

2158


What is the difference between file-based dependency and key-based dependency?

776


What is ispostback method in asp.net?

735


What does mvc represent in asp.net? : asp.net mvc

723


Which platform does Microsoft .NET use for exchanging data between applications?

765


What is Razor View Engine

810


Explain difference between dataset and datareader?

782


How can you access the properties and controls of master pages from content pages?

730


How can you implement the postback property of an asp.net control?

713


How you will improve web application performance?

721