Hi everyone. First time I'm posting something, so far I've been able to google it out but this time no luck so far...
I have a html input checkbox on my page
From the javascript 'switchlayers' in onclick() event I'm raising a callback event on the server side.
within this callback I want to check the status of the checkbox (checked/unchecked) and I want to avoid sending this status in a callback message.
the problem is that even if I'm able to find the control from asp.net page, the check status is always checked. no matter if I uncheck it -> callback script fire off the callback event on server -> get the control -> check status = checked. ????
<input id="B2O1" type="checkbox" name="chckB2O1" onclick="switch layers('2');" checked="checke d" runat="server" />
server side:
HtmlInputCheckB ox chckB2O1 = (HtmlInputCheck Box)Page.FindCo ntrol("B2O1");
chckbB2O1.Check ed is always true WHY ? could please someone shed more light into this..
simply: how do I get the status of the html checkbox from inside the asp.net ?
thank you.
I have a html input checkbox on my page
From the javascript 'switchlayers' in onclick() event I'm raising a callback event on the server side.
within this callback I want to check the status of the checkbox (checked/unchecked) and I want to avoid sending this status in a callback message.
the problem is that even if I'm able to find the control from asp.net page, the check status is always checked. no matter if I uncheck it -> callback script fire off the callback event on server -> get the control -> check status = checked. ????
<input id="B2O1" type="checkbox" name="chckB2O1" onclick="switch layers('2');" checked="checke d" runat="server" />
server side:
HtmlInputCheckB ox chckB2O1 = (HtmlInputCheck Box)Page.FindCo ntrol("B2O1");
chckbB2O1.Check ed is always true WHY ? could please someone shed more light into this..
simply: how do I get the status of the html checkbox from inside the asp.net ?
thank you.