SHARE
TWEET

Untitled

a guest May 23rd, 2019 72 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top