Ask a Question related to ASP.NET General, Design and Development.
-
Tracey #1
ASP.NET Checkboxes
Thanx M, and I mean that, but I really need this to work
without a postback and frankly it should behave like the
other controls are behaving (correctly). This smells like
a bug to me and I just wanted to get some sort of
confirmation from the field or refutation with some sort
of an explaination. Can you reproduce the problem? I have
found a way around it for now by encasing the checkboxes
in an <asp:Table> then disabling/enabling the table
instead, which thankfully works. Thanx again M.
true and then try>-----Original Message-----
>hi Tracey
>
>try seting 'AutoPostBack' property for the controls toText="chkTest">again. your code will look somethnig like this
>
><form id="frmTest" method="post" runat="server">
>
><asp:CheckBox ID="chkTest" Runat="server" Enabled="False"Text="chkTryIt">AutoPostBack="True"></asp:CheckBox>
>
><asp:TextBox ID="txtTest" Runat="server" Enabled="False">>>txtTest</asp:TextBox>
><asp:CheckBox ID="chkTryIt" Runat="server" Enabled="True"<asp:textbox>>AutoPostBack="True"></asp:CheckBox>
>
></form>
>
>M
>
>"Tracey" <traceydenomy@hotmail.com> wrote in message
>news:00f301c35133$d6f1ab10$a001280a@phx.gbl...>> I have found that the <asp:checkbox> control is not
>> respecting the disabled attribute while theif>> and other controls are respecting it. Does anybody knowEnabled="False">> this is a known bug and if so, what it's number is? Can
>> anybody else reproduce this problem? I've included some
>> simple code below. Here is the Form:
>>
>> <form id="frmTest" method="post" runat="server">
>>
>> <asp:CheckBox ID="chkTest" Runat="server"Enabled="True">> Text="chkTest"></asp:CheckBox>
>>
>> <asp:TextBox ID="txtTest" Runat="server"
>> Enabled="False">txtTest</asp:TextBox>
>>
>> <asp:CheckBox ID="chkTryIt" Runat="server"7/18/2003>>> Text="chkTryIt"></asp:CheckBox>
>>
>> </form>
>>
>> And here is some client side script used to flip flop
>> between enabled and disabled. Notice how the textbox
>> respects the disabled attribute, but for some reason the
>> checkbox doesn't?
>>
>> Sub chkTryIt_OnClick
>>
>> document.getElementById("chkTest").disabled = _
>> (document.getElementById("chkTryIt").checked = False)
>>
>> document.getElementById("chkTest").checked = _
>> (document.getElementById("chkTryIt").checked = True)
>>
>> document.getElementById("txtTest").disabled = _
>> (document.getElementById("chkTryIt").checked = False)
>>
>> End Sub
>>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
>Version: 6.0.502 / Virus Database: 300 - Release Date:>
>
>.
>Tracey Guest
-
What to do about checkboxes?
I have a grid with odds and ends of data, some of the fields are true/false checkboxes. The users don't like the fact that the checkboxes are... -
checkboxes
"cbool" might help if cbool(request.form("mychk")) = true then "Paul" <paul@themedialounge.com> wrote in message... -
PHP checkboxes
How do I send CHECKBOXES via email through the mail() function in PHP? Example: You have 67 checkboxes, all with unique names, but only want to... -
[PHP] Checkboxes
You could try this: <input type="hidden" name="box1" value="0"> <input type="checkbox" name="box1" value="1"> So basically when it get... -
CGI and checkboxes
How do I get the value from a checkbox made with cgi.checkbox ? I need to make a decision based on whether or not the checkbox is checked - will...



Reply With Quote

