温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:asp.net漂亮弹出对话框控件源码及示例
当前文件:
U3PILEHVJGM55/default.aspx.cs,打开代码结构图
U3PILEHVJGM55/default.aspx.cs,打开代码结构图1using System; 2
using System.Collections; 3
using System.ComponentModel; 4
using System.Data; 5
using System.Drawing; 6
using System.Web; 7
using System.Web.SessionState; 8
using System.Web.UI; 9
using System.Web.UI.WebControls; 10
using System.Web.UI.HtmlControls; 11
12
using EeekSoft.Web; 13
14
namespace 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





}