Posted on: 10/18/2014 5:13:39 AM | Views : 364

Hello all,

I want the same thing as it is in MessageBox in asp.net i.e.
if dialog result =yes
// codeif dialog result ==no
//code


So i used :
 if (!ReturnValue())                         {
 string strconfirm = "<script>if(!window.confirm('Continue in demo mode?')){window.location.href='Default.aspx'}</script>";                             CSM.RegisterClientScriptBlock(this.GetType(), "Confirm", strconfirm, false);
}
bool ReturnValue()     {         return false;     }
< ...

Go to the complete details ...