2、简单交互对话框

  

 2,简单交互对话框

- - - - - -后台

using 系统;   using  System.Collections.Generic;   using 来;   using 包含;   using  System.Web.UI;   using  System.Web.UI.WebControls;   public  partial  class  _2_简单交互对话框_Default : System.Web.UI.Page   {   ,,,protected  void  employee (object ,发送方,EventArgs  e)   ,,,{   ,,,}      ,,,protected  void  Button1_Click (object ,发送方,EventArgs  e)   ,,,{   ,,,,,,,ShowDialog(“删除成功”);   ,,,}      ,,,///,& lt; summary>   ,,,///,弹出模式1(服务端按钮)   ,,,///,& lt;/summary>   ,,,///,& lt; param  name=拔毒痹诘龅哪谌?必填)& lt;/param>   ,,,///,& lt; param  name=" asyn祝辞真正则为ajax模式(选填)& lt;/param>   ,,,///,& lt; param  name=肮丶钡脑诠丶?选填)& lt;/param>   ,,,public  void  ShowDialog (string 味精、string 图标=" ",bool  asyn =,假,,string  key =, " ")   ,,,{   ,,,,,,,string  dialog =, string.Format (“art.dialog.alert(“{0}”,“{1}”)”,,味精、,图标);   ,,,,,,,if  (asyn !)   ,,,,,,,,,,,ClientScript.RegisterStartupScript (this.GetType(),,,,对话框,,真的);   ,,,,,,,   ,,,,,,,,,,,ScriptManager.RegisterClientScriptBlock (this.Page, typeof(字符串),钥匙,,对话框,,真的);   ,,,}      ,,      }

,

- - - - - -前台

& lt; % @  Page 语言=癱#”, AutoEventWireup=" true ", CodeFile=癉efault.aspx.cs”,继承了=癬2_简单交互对话框_Default”, %比;   & lt; ! DOCTYPE  html  PUBLIC “-//W3C//DTD  XHTML  1.0,过渡//EN ", " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "比;   & lt; html  xmlns=" http://www.w3.org/1999/xhtml "比;   & lt; head  runat=" server "比;   ,,,& lt; title> & lt;/title>   ,,,,& lt; style>   ,,,,,,,body {,字体大小:75%;,颜色:# 666;,字体类型:“Microsoft  Yahei”,大河马字体,,Arial !重要;,字体类型:“宋体”,,大河马字体,,Arial;}   ,,,& lt;/style>   ,,,& lt; script  src=" https://www.yisu.com/artDialog/jquery-1.4.2.min.js ", type=" text/javascript祝辞& lt;/script>   ,,,& lt; script  src=" https://www.yisu.com/artDialog/artDialog.js?skin=default "祝辞& lt;/script>   ,,,& lt; script  src=" https://www.yisu.com/artDialog/ZD.artDialog.js ", type=" text/javascript祝辞& lt;/script>   ,,,& lt; script  src=" https://www.yisu.com/artDialog/plugins/iframeTools.source.js ", type=" text/javascript祝辞& lt;/script>   ,,,& lt; script  type=" text/javascript祝辞   ,,,,,,   ,,,,,,,function  dome1 (), {   ,,,,,,,,,,,art.dialog.alert(“人品越来越不那么稳定了,请检查!”,,“警告”);   ,,,,,,,}   ,,,,,,,function  dome2 (), {   ,,,,,,,,,,,art.dialog.confirm(“你确定要删除这掉消息吗?’,,function  (), {   ,,,,,,,,,,,,,,,art.dialog.tips(“执行确定操作的);   ,,,,,,,,,,,},,function  (), {   ,,,,,,,,,,,,,,,art.dialog.tips(“执行取消操作的);   ,,,,,,,,,,,},,“成功”);   ,,,,,,,}   ,,,,,,,function  dome3 (), {   ,,,,,,,,,,,art.dialog.prompt(“请输入图片网址”,,function  (val), {   ,,,,,,,,,,,,,,,art.dialog.tips (val);   ,,,,,,,,,,,},,' http://');   ,,,,,,,}   ,,,,,,,function  dome4 (), {   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

2、简单交互对话框