I used a javascript coding for confirm box and it shows 'javaScript Runtime error' while reading value of that textbox... Is there any alternate option for this Confirm box to work...
<script type="text/javascript">
function test() {
var m = document.getElementById('<%=textbox1.ClientID%>').value;
if (m != "") {
var cBox = confirm("Are you sure want to add new user?");
if (cBox == true)
return true;
else
return false;
}
}
</script>
and I am calling it in code behind...
ScriptManager.RegisterStartupScript(Page, this.GetType(), "CallJS", "test();", true);