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
anel 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
anel>
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>
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
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
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>