Guest User

Untitled

a guest
May 23rd, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3. string script = @"<script>
  4. function ConfirmSubmit() {
  5. var msg = 'Вы действительно хотите отправить данные?';
  6. return confirm(msg);
  7. }
  8. </script>";
  9.  
  10. Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
  11. "Confirm", script);
  12. form1.Attributes.Add("onsubmit", "return ConfirmSubmit();");
  13. }
RAW Paste Data