ASP:Control Not Working in Firefox or Safari

Discussion in 'ASP .Net Web Controls' started by Brett, Feb 7, 2008.

  1. Brett

    Brett Guest

    Searched these forums, but cpouldn't find anyting.

    Using ASP .Net 2.0.

    Have an Asp:Butoon control on a form attached to a command name. It is
    working fine in IE, but not Firefox or Safari. In Firefox and safari,
    neither button is clickable. They act like labels only. One button is
    disabled intentionally because we alternate between the two. See code below.


    Any ideas? Thanks

    ASP Code:

    <asp:panel ID="a" runat="server" Style="right: 20px; position: absolute;
    top: 58px">
    <asp:Button ID="ts" runat="server" BorderWidth="0"
    OnCommand="SwitchViews" CommandName="b" Text="Button1" enabled="false"
    width="100px" Font-Underline="false" BackColor="white" ForeColor="blue"/>
    |
    <asp:Button ID="tr" runat="server" BorderWidth="0"
    OnCommand="SwitchViews" CommandName="c" Text="Button2" enabled="true"
    width="100px" Font-Underline="true" BackColor="white" ForeColor="blue"/>
    </asp:panel>

    Rendered Code (looks the same ion all browsers):

    <div id="ctl00_CentralCph_pnlViewSwitch" style="right: 20px; position:
    absolute; top: 58px">
    <input type="submit" name="ctl00$CentralCph$Button1" value="Button1"
    id="ctl00_CentralCph_Button1" disabled="disabled"
    style="color:Blue;background-color:White;border-width:0px;text-decoration:none;width:100px;" />
    |
    <input type="submit" name="ctl00$CentralCph$Button2" value="Button2"
    id="ctl00_CentralCph_Button2"
    style="color:Blue;background-color:White;border-width:0px;text-decoration:underline;width:100px;" />
    </div>
     
    Brett, Feb 7, 2008
    #1
    1. Advertisements

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. Chris Mahoney

    Sessions not retained in Firefox/Safari

    Chris Mahoney, Sep 13, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,526
    aatif
    Aug 15, 2006
  2. Micah N
    Replies:
    1
    Views:
    4,968
  3. JDeats
    Replies:
    2
    Views:
    780
    JDeats
    Sep 11, 2007
  4. Replies:
    1
    Views:
    1,627
  5. Foreman
    Replies:
    5
    Views:
    444
    Foreman
    Jan 25, 2005
  6. JB
    Replies:
    3
    Views:
    341
    Fred Oz
    Nov 7, 2004
  7. Replies:
    4
    Views:
    418
    Randy Webb
    Feb 18, 2006
  8. Terry
    Replies:
    1
    Views:
    249
    Terry
    Oct 20, 2007
Loading...