Hi All,
I have a html checkbox control and Button in my User control.
Now i need to check whether checkbox is checked when button is clicked.
I am using the below code. But it does not work :(
In webusercontrol1.ascx,
$(document).ready(function () {
$("input[id*=remember]").change(function () {
debugger;
if (this.checked)
alert("its checked");
else
alert("notchecked");
});
});
In webusercontrol1.ascx.cs,
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "function();", true);
// my rest of the code once checkbox is clicked
}
Ish BandhuPosted Mar 14, 2013, 11:38 PM