您目前尚未登陆,请选择【登陆】或【注册
首页->控件插件->asp.net漂亮弹出对话框控件源码及示例>>default.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:asp.net漂亮弹出对话框控件源码及示例
当前文件:文件类型 U3PILEHVJGM55/default.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections; 3using System.ComponentModel; 4using System.Data; 5using System.Drawing; 6using System.Web; 7using System.Web.SessionState; 8using System.Web.UI; 9using System.Web.UI.WebControls; 10using System.Web.UI.HtmlControls; 11 12using EeekSoft.Web; 13 14namespace EeekSoft.PopupTest 15{ 16 /// <summary> 17 /// Testing page... 18 /// </summary> 19 public class Default : System.Web.UI.Page 20 { 21 Web Form Designer generated code 74 75 private void Page_Load(object sender, System.EventArgs e) 76 { 77 lblMsg.Visible=false; 78 popupBob.Visible=popupWin2.Visible=popupWin.Visible=false; 79 } 80 81 private void btnPopup_Click(object sender, System.EventArgs e) 82 { 83 popupWin.HideAfter=(sender==null)?-1:5000; 84 popupWin.Visible=true; 85 popupWin.Title=textTitle.Text; 86 popupWin.Message=textMsg.Text; 87 popupWin.Text=textFull.Text; 88 popupWin.DragDrop=(dropDrag.SelectedIndex==0); 89 switch(popDocking.SelectedIndex) 90 { 91 case 0: popupWin.DockMode=EeekSoft.Web.PopupDocking.BottomLeft; break; 92 case 1: popupWin.DockMode=EeekSoft.Web.PopupDocking.BottomRight; break; 93 } 94 switch(clrStyle.SelectedIndex) 95 { 96 case 0: popupWin.ColorStyle=EeekSoft.Web.PopupColorStyle.Red;break; 97 case 1: popupWin.ColorStyle=EeekSoft.Web.PopupColorStyle.Green;break; 98 case 2: popupWin.ColorStyle=EeekSoft.Web.PopupColorStyle.Blue;break; 99 case 3: popupWin.ColorStyle=EeekSoft.Web.PopupColorStyle.Violet;break; 100 } 101 popupWin2.Visible=false; 102 } 103 104 private void btn4Ever_Click(object sender, System.EventArgs e) 105 { 106 btnPopup_Click(null,null); 107 } 108 109 private void btnTwo_Click(object sender, System.EventArgs e) 110 { 111 btnPopup_Click(sender,e); 112 popupWin2.DockMode=popupWin.DockMode; 113 popupWin2.DragDrop=(dropDrag.SelectedIndex==0); 114 popupWin2.Visible=true; 115 } 116 117 private void popupWin2_LinkClick(object sender, System.EventArgs e) 118 { 119 lblMsg.Text="Hey ! You clicked on link on second popup !!"; 120 lblMsg.Visible=true; 121 } 122 123 private void popupWin2_PopupClose(object sender, System.EventArgs e) 124 { 125 lblMsg.Text="Hey ! You closed second popup !!"; 126 lblMsg.Visible=true; 127 } 128 129 private void btnBob_Click(object sender, System.EventArgs e) 130 { 131 popupBob.Visible=true; 132 popupBob.DragDrop=(dropDrag.SelectedIndex==0); 133 } 134 } 135} 136
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:asp.net漂亮弹出对话框控件源码及示例
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号