您目前尚未登陆,请选择【登陆】或【注册
首页->控件插件->asp.net漂亮弹出对话框控件源码及示例>>dynamictest.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:asp.net漂亮弹出对话框控件源码及示例
当前文件:文件类型 U3PILEHVJGM55/dynamictest.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 /// Test of dynamic control loading 18 /// </summary> 19 public class DynamicTest : System.Web.UI.Page 20 { 21 protected System.Web.UI.WebControls.PlaceHolder placeHolder; 22 23 /// <summary> 24 /// Create controls 25 /// </summary> 26 private void Page_Load(object sender, System.EventArgs e) 27 { 28 // Create popup window and popup win anchor control 29 PopupWin popupWin=new PopupWin(); 30 PopupWinAnchor popupAnchor=new PopupWinAnchor(); 31 32 // Add controls to page 33 placeHolder.Controls.Add(popupAnchor); 34 placeHolder.Controls.Add(popupWin); 35 36 // Set anchor properties 37 popupAnchor.PopupToShow=popupWin.ClientID; 38 popupAnchor.LinkedControl="reopen"; 39 popupAnchor.HandledEvent="onclick"; 40 41 // Set popup win properties 42 popupWin.ActionType=EeekSoft.Web.PopupAction.MessageWindow; 43 popupWin.Title="This is popup"; 44 popupWin.Message="<i>Message</i> displayed in popup"; 45 popupWin.Text="Text to show in new window.."; 46 popupWin.HideAfter=5000; 47 48 // Show popup 49 popupWin.Visible=true; 50 popupWin.AutoShow=false; 51 } 52 53 54 override protected void OnInit(EventArgs e) 55 { 56 InitializeComponent(); 57 base.OnInit(e); 58 } 59 60 Web Form Designer generated code 72 } 73} 74
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:asp.net漂亮弹出对话框控件源码及示例
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号