ScriptManager.RegisterStartupScript(this, this.GetType(), "javascript", "if(confirm('are you sure?')==true){document.getElementById('" + hfMessageBoxValue.ClientID.ToString() + "').vale='YES'}else{document.getElementById('" + hfMessageBoxValue.ClientID.ToString() + "').vale='NO'}{document.getElementById('" + btnSavechecked.ClientID + "').click()}", true); if (hfMessageBoxValue.Value == "YES") { do something } else(hfMessageBoxValue.Value == "NO") { do something }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)