.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Buttons

Posted By: iswarya     Posted Date: November 16, 2011    Points:5   Category :ASP.Net
Suppose We want a certain ASP.NET function executed on Mouse over a certain button.Where do we add an event handler?

Responses
Author: Amit Mehra             
Posted Date: November 16, 2011     Points: 20   

Hi,

You can add the in the PageLoad event of a web page like this

Button1.Attributes.Add("eventName","your javascript function name");


Hope I understood your question

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Maverick             
Posted Date: November 18, 2011     Points: 20   

Hello,

Button.Attributes.Add("onblur","your function");

Thanks,
Maverick
Author: shankey             
Posted Date: November 21, 2011     Points: 20   

use Add method of YourButton.Attributes.Add

Shankey


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend