Here is the implementation i tried with the scenario:-
<p>
<asp:checkbox id="chkTest" runat="server" clientidmode="Static" xmlns:asp="#unknown" />
<asp:label id="lblTest" runat="server" text="Label" clientidmode="Static" xmlns:asp="#unknown"></asp:label>
</p>
<p>
<asp:button id="btnTest" runat="server" text="Button" onclick="btnTest_Click" xmlns:asp="#unknown" />
</p>
Javascript Code:-
<script type="text/javascript">
$(function () {
document.getElementById('chkTest').checked = true;
$('#lblTest').text('Smruti');
});
</script>
On ServerSide button click:-
protected void btnTest_Click(object sender, EventArgs e)
{
bool val = chkTest.Checked;
}
I think the property value
ClientIDMode="Static"
is the thing which you have to take care.
Please let me know if this is helpful or please share your code and we will analyse to get the things done.