Connecting Tech Pros Worldwide Forums | Help | Site Map

onmouseover in <asp:textbox>

Member
 
Join Date: Oct 2007
Posts: 73
#1: Apr 1 '08
In <asp:textbox> we do not have the method such as onmouseover as we have it in input type = "text" instead of onmouseover which method would be a perfect match for it? My situation is for a calender plz help me out...

pshm's Avatar
Newbie
 
Join Date: Mar 2008
Posts: 20
#2: Apr 1 '08

re: onmouseover in <asp:textbox>


hi,
ASP controls will run at server.. there you cant use the client side event handlers directly.
you can add the event handlers by this way
Expand|Select|Wrap|Line Numbers
  1. controleName.Attributes.Add("onmouseover","return javascript_name();");
  2.  
give this code in the page_load method

regards,
Reply