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
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
Explain model, view and controller represent in an mvc application? : asp.net mvc
What do you mean by authentication?
Is react a template engine?
Tell me the code snippet to show how we can return 404 errors from HttpError?
What is the mvc framework?
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
What is the server of asp.net?
What are the benefits of view state?
How does a content page differ from a master page?
What are the merits and demerits of viewstate?
3. What goals do you have in your career?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Why does my asp.net file have multiple tag with runat=server?
What is a form tag?