Can u please post the function "Msgbox("Your Message",VBOK)"
but am unable to assign the value into hiddenfield
public void ReturnValue()
{
ClientScriptManager CSM = Page.ClientScript;
string strconfirm = " <script language='javascript' type=text/javascript>" + "var hdn1 = document.getElementsByName(hdnField'); " + " var savresult=confirm('Do You want to delete all documents and its versions?'); " + " if(savresult==1) " + " {" + " hdn1.value='1'; " + " alert(hdn1.value);" + " } " + " else " + " { " + " hdn1.value='0'; " + " alert(hdn1.value); " + " } " + " </script>";
CSM.RegisterClientScriptBlock(this.GetType(), "Confirm", strconfirm, false);
//ClientScript.RegisterClientScriptBlock(this.GetType(), "onclick()", strconfirm.ToString(), false);
Response.Write(hdnField.Value);
}
but am unable to store the value into hiddenfield.