CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    South Africa
    Posts
    263

    [RESOLVED] MouseOver event on the Button in Asp.Net

    Good Day All

    I have two image Buttons Like this

    Code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
        Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <igtxt:WebImageButton ID="WebImageButton1" runat="server">
            </igtxt:WebImageButton>
            <igtxt:WebImageButton ID="WebImageButton2" runat="server">
            </igtxt:WebImageButton>
        
        </div>
        </form>
    </body>
    </html>
    Now i want to do a mouse Over , on WebImageButton1 and when i mouse is moved over that button it must disable WebImageButton1 and make WebImageButton2 Visible. and if the Focus is lost on Button WebImageButton2 it must hide button WebImageButton2

    The Reason am Doing this Is that i want my user to Confirm with the second button. i was using a Menu Control inside a Multiview Control and the hovering is not working meaning the Submenu does not appear. So i decided to show and hide Buttons to mimic that functionality.

    If you have any Suggestion, please Share

    Thanks
    Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

  2. #2
    Join Date
    Oct 2008
    Posts
    47

    Re: MouseOver event on the Button in Asp.Net

    You could use DHTML JavaScript functions to slide the disabled button out of view, or change it's z index to be below your other div items. Do you have a JS file you are implementing with this app?

    Hope this helps

    Larry Darrah
    MS Architect Evangellist

  3. #3
    Join Date
    Dec 2007
    Location
    South Africa
    Posts
    263

    Resolved Re: MouseOver event on the Button in Asp.Net

    Good Morning

    Thank you for your Help. It worked

    Thanks
    Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured