The confirm dialog box pops up on the server side

From , 5 Years ago, written in C#, viewed 146 times.
URL https://pastebin.vip/view/ba3e9b6a
  1. /**//// <summary>
  2. /// 服务器端弹出confirm对话框
  3. /// </summary>
  4. /// <param name="str_Message">提示信息,例子:"您是否确认删除!"</param>
  5. /// <param name="btn">隐藏Botton按钮Id值,比如:btn_Flow</param>
  6. /// <param name="page">Page类</param>
  7. public void Confirm ( string str_Message,string btn,Page page )
  8. {
  9.         page.RegisterStartupScript ( "","<script> if (confirm('"+str_Message+"')==true){document.forms(0)."+btn+".click();}</script>" );
  10. }
  11.  

Reply to "The confirm dialog box pops up on the server side"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website