using mouseout / mouseover in linkbutton

Posted on 2004-11-05
Last Modified: 2008-07-18
can someone give me an exmaple how to use onmouseout/onmouseover using linkbutton
Question by:musclejack
    LVL 28

    Accepted Solution

    Hi musclejack,

    have you tried with

    LinkButton.Attributes.Add("onmouseout", "add your javascript")
    LinkButton.Attributes.Add("onmouseover", "add your javascript")

    LVL 18

    Expert Comment

    What exacly you want to do with MouseOver/MouseOut? If you want to Underline it on mouse over then you can treat your LinkButton like HyperLink and link CSSClass property to the CSS.


    <style type=text/css>
      a.speak:link {
          font-family: Verdana, Arial, Helvetica, sans-serif;
          font-size: 10px;
          font-weight: bold;
          color: #666666;
          text-decoration: none;

        a.speak:hover {
          font-family: Verdana, Arial, Helvetica, sans-serif;
          font-size: 10px;
          font-weight: bold;
          color: #000029;
          text-decoration: underline;

    --> & now set CssClass property of your LinkButton to 'speak'


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now