BorderWidth of the control asp:ImageButton does not work in firefox

Discussion in 'ASP .Net Web Controls' started by Christophe Sauvage, Oct 5, 2007.

  1. Hello,
    Apparently the property BorderWidth of the control asp:ImageButton does not
    work in firefox
    there is a solution ?
    Thank you.

    Server code :
    <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
    %>
    <%@ import Namespace="System" %>

    <script language="C#" runat="server">

    void Page_Load(Object sender, EventArgs E){
    if (!IsPostBack) {
    VisuAImageButton.BorderWidth = 0;
    }
    }

    void ChoixAClick (Object sender, ImageClickEventArgs E){
    VisuAImageButton.BorderWidth = 4;
    }

    </script>
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title></title>
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form class="body" runat="server" style="margin:0;">
    <asp:ImageButton BorderColor="#FF0080" OnClick="ChoixAClick"
    ID="VisuAImageButton" ImageUrl="/images/btn-visualisez.gif" runat="server"
    />
    </form>
    </body>
    </html>
     
    Christophe Sauvage, Oct 5, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Ter-Saakov

    ImageButton does not work on Win2003.

    George Ter-Saakov, Jan 26, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    379
    George Ter-Saakov
    Jan 27, 2004
  2. David Freeman
    Replies:
    8
    Views:
    7,645
    tcena9
    Feb 16, 2011
  3. Nathan Sokalski
    Replies:
    1
    Views:
    293
    George Ter-Saakov
    Nov 7, 2007
  4. Iain Wilson
    Replies:
    1
    Views:
    346
    Munna
    Aug 7, 2008
  5. David Freeman
    Replies:
    5
    Views:
    228
    Nay Myo Aung
    Dec 27, 2004
Loading...

Share This Page