Why does a checkbox remain checked in FF3 but not in IE, Chrome or ...
Posted
by sirrocco
on Stack Overflow
See other posts from Stack Overflow
or by sirrocco
Published on 2008-10-16T13:58:19Z
Indexed on
2010/04/21
22:13 UTC
Read the original article
Hit count: 175
So - I have a checkbox
<asp:CheckBox ID="chkOrder" runat="server" Visible='<%#IsCheckBoxVisible() %>'
Checked="false"
OnCheckedChanged="chkOrder_CheckedChanged" AutoPostBack="true"
EnableViewState="false"></asp:CheckBox>
the one above. Now, the checkbox is in a gridview and on databound - for all the rows in the gridview the checkbox is set to false. The problem is that the first checkbox is still true checked.
In IE the problem doesn't exist, same for Chrome. I'm running out of options. Also if i use
$("checkboxName").attr("checked"); // verified on jquery ready function.
In FF it is true; IE false; Chrome false.
Any tips?
EDIT
Now get ready for this : in the generated html - there is NO checked attribute. The diff between FF and IE is exactly the same.
Another thing - the grid that contains the checkboxes has an ajax panel on it and when I page the grid, try to go to page 2 - the checkedChanged in codebehind is triggered.
© Stack Overflow or respective owner