代码下载:http://download.csdn.net/source/2508693
Msg namespace 弹出消息框
代码
using
System;
using Lazy.Msg;
public partial class LazyMsg : System.Web.UI.Page
{
protected void Page_Load( object sender, EventArgs e)
{
}
protected void Button1_Click( object sender, EventArgs e)
{
lazyMessage.Show( this .Page, " hello " );
}
protected void Button2_Click( object sender, EventArgs e)
{
lazyMessage.Show( " 点击确定后跳转的页面 " , " LazyMsg.aspx " );
}
protected void Button3_Click( object sender, EventArgs e)
{
lazyMessage.Show( " 关闭当前页面 " , true );
}
protected void Button4_Click( object sender, EventArgs e)
{
lazyMessage.GotoParentWindow( " LazyMsg.aspx " );
}
protected void Button5_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " );
}
protected void Button6_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " , " lazycode " , " xxxxx " );
}
protected void Button7_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " , true );
}
protected void Button8_Click( object sender, EventArgs e)
{
lazyMessage.CloseWindow();
}
}
using Lazy.Msg;
public partial class LazyMsg : System.Web.UI.Page
{
protected void Page_Load( object sender, EventArgs e)
{
}
protected void Button1_Click( object sender, EventArgs e)
{
lazyMessage.Show( this .Page, " hello " );
}
protected void Button2_Click( object sender, EventArgs e)
{
lazyMessage.Show( " 点击确定后跳转的页面 " , " LazyMsg.aspx " );
}
protected void Button3_Click( object sender, EventArgs e)
{
lazyMessage.Show( " 关闭当前页面 " , true );
}
protected void Button4_Click( object sender, EventArgs e)
{
lazyMessage.GotoParentWindow( " LazyMsg.aspx " );
}
protected void Button5_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " );
}
protected void Button6_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " , " lazycode " , " xxxxx " );
}
protected void Button7_Click( object sender, EventArgs e)
{
lazyMessage.OpenWebForm( " LazyMsg.aspx " , true );
}
protected void Button8_Click( object sender, EventArgs e)
{
lazyMessage.CloseWindow();
}
}