ASP:Control Not Working in Firefox or Safari

B

Brett

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,044
Members
48,769
Latest member
Clifft

Latest Threads

Top