SindhujaNagaraj 0 Newbie Poster

hi,

i need to display a confirmation message box at timmer tick event.

i wrote the below code

1. ScriptManager.RegisterStartupScript(this, GetType(), "Timmeralert", "if(Confirm('Are you sure want to extend time?') == true){return true;}else{return false;}", true);

2. ScriptManager.RegisterStartupScript(this, GetType(), "Timmeralert", "if (window.confirm('Are you sure You Want To continue?')==true) {return true; } else { return false; }", true);

both doesn't display a confirmation message box.

but i tried to display alert it is working

ScriptManager.RegisterStartupScript(this, GetType(), "Timmeralert", "alert('Do u want extend time?');", true);

can any one help out on this
thanks,
sindhuja