Hover effect of Asp Dotnet Buttons

  • Thread starter Thread starter jack
  • Start date Start date
J

jack

Hi.. aaa... i tried a lot btu couldnt find on net,
Im trying to get the hover effect of the web button . but dont know how
to get this ..
Please help
Thanks Awaiting for the answer..
 
Hi.. aaa... i tried a lot btu couldnt find on net,
Im trying to get the hover effect of the web button . but dont know how
to get this ..


Take a look at CSS - Hover attribute.
 
sorry this works very well with the other html contrls but i think that
this thing little tricky with webcontrol button..
 
sorry this works very well with the other html contrls but i think that
this thing little tricky with webcontrol button..

No, not at all - you can assign the webcontrol button a CSS class : )
 
What type of button are you using? If it is the asp:image button, you can
add the onmouseover and onmouseout attributes to it....
e.g. Hope this helps..
<asp:ImageButton ID="ImageButton2" runat="server"
ImageUrl="~/images/CancelButton.gif" CommandName="cancel"
OnCommand="buttonExecute
onmouseover="this.src='../images/CancelOverButton.gif';"
onmouseout="this.src='../images/CancelButton.gif';"/>

--Papanii
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top