R
Ryan Ternier
I have a check box on my page. When a user clicks this box I have a
confirmation box come up.
When the user clicks OK, true is returned, otherwise false.
Now, when true is Returened, I want the form to postback. I can't figure
out how to do this.
Here is the code I use to put the OnClick event on the CHeckbox.
this.chkClosed.Attributes.Add("onClick","return CheckClosed('" +
chkClosed.ID + "');");
It works fine. However, it will not fire a postback.
The Source shows this:
<input id="chkClosed" type="checkbox" name="chkClosed" onclick="return
CheckClosed('chkClosed');__doPostBack('chkClosed','')" language="javascript"
/>
ANy advice?
confirmation box come up.
When the user clicks OK, true is returned, otherwise false.
Now, when true is Returened, I want the form to postback. I can't figure
out how to do this.
Here is the code I use to put the OnClick event on the CHeckbox.
this.chkClosed.Attributes.Add("onClick","return CheckClosed('" +
chkClosed.ID + "');");
It works fine. However, it will not fire a postback.
The Source shows this:
<input id="chkClosed" type="checkbox" name="chkClosed" onclick="return
CheckClosed('chkClosed');__doPostBack('chkClosed','')" language="javascript"
/>
ANy advice?