/**//// <summary> /// 服务器端弹出confirm对话框 /// </summary> /// <param name="str_Message">提示信息,例子:"您是否确认删除!"</param> /// <param name="btn">隐藏Botton按钮Id值,比如:btn_Flow</param> /// <param name="page">Page类</param> public void Confirm ( string str_Message,string btn,Page page ) { page.RegisterStartupScript ( "","<script> if (confirm('"+str_Message+"')==true){document.forms(0)."+btn+".click();}</script>" ); }