G
Guest
I'm using asp.net 2.0
I have a checkbox with server checkedCanged event .
I must add a confirm on click event.
I have used this : myCheckBox.Attributes.Add("onClick", "return
CofirmFunction()"); on Page_Load event.
On page : <script type="text/javascript" language="javascript">
function CofirmFunction()
{
var test = confirm('message ?');
if (test) {return true;}
else {return false;}
}
</script>
The problem is that the myCheckBox_checkedCanged event don't work.
Can I solve the problem ?
I have a checkbox with server checkedCanged event .
I must add a confirm on click event.
I have used this : myCheckBox.Attributes.Add("onClick", "return
CofirmFunction()"); on Page_Load event.
On page : <script type="text/javascript" language="javascript">
function CofirmFunction()
{
var test = confirm('message ?');
if (test) {return true;}
else {return false;}
}
</script>
The problem is that the myCheckBox_checkedCanged event don't work.
Can I solve the problem ?