Thulasiram pakala

Thulasiram pakala

  • 907
  • 872
  • 114k

after save button click i want conformation message u r select critica

Jul 19 2021 10:56 AM

 after save button click i want conformation message u r select critical options do yu want share this options like that i want show message ok button click then only need to save u use save button this script

and clint side  i use this

 <script type="text/javascript">
           function Confirmation(criticals) {
               hdncriticalfields = document.getElementById("<%=lblcritical.ClientID %>").value;
               alert(criticals);
               var reply = confirm("You are selection Some Critical Options?" + criticals);
               if (reply) {
                   return true;
               }
               else {
                   return false;
               }
           }
    </script>


     and btnsave click i use this code but its shows message after saving its comes any body help for this

 

ScriptManager.RegisterStartupScript(this.Page, typeof(Page), Guid.NewGuid().ToString(), "Confirmation('"+ lblcritical .Text + "');", true);
              

  // ClientScript.RegisterClientScriptBlock(this.GetType(), "JSScriptBlock", "Confirmation('" + script + "');", true);

             // ScriptManager.RegisterStartupScript(this, this.GetType(), "ajax", "<script language='javascript'>Confirmation('" + script + "');</script>", false);
             
               // ScriptManager.RegisterStartupScript(this.Page, typeof(Page), Guid.NewGuid().ToString(), "Confirmation('" + script + "');", true);
           


Answers (4)