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. 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. Micah N
    Replies:
    1
    Views:
    4,765
  2. Foreman
    Replies:
    5
    Views:
    211
    Foreman
    Jan 25, 2005
  3. JB
    Replies:
    3
    Views:
    125
    Fred Oz
    Nov 7, 2004
  4. Replies:
    4
    Views:
    249
    Randy Webb
    Feb 18, 2006
  5. Terry
    Replies:
    1
    Views:
    111
    Terry
    Oct 20, 2007
Loading...

Share This Page