how to use onblur and on focus events of imagebutton in asp.net
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
Hi friends In my project i am using imagebutton, for visual effects i want to use on blur,onfocus,onclick events of image button how to use it
-
Hi friends In my project i am using imagebutton, for visual effects i want to use on blur,onfocus,onclick events of image button how to use it
add the below code in the page_load event
ImageButton1.Attributes.Add("onblur","alert('this is a blur test')"); ImageButton1.Attributes.Add("onfocus","alert('this is a focus test')"); ImageButton1.Attributes.Add("onclick","alert('this is a click test')");
WHERE ImageButton1 is the id of your image buttonBest Regards, Haissam Abdul Malak My Blog