|
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Mbox1.Btn1Clicked += new EventHandler(Mbox1_Btn1Clicked);
Mbox1.Btn2Clicked += new EventHandler(Mbox1_Btn2Clicked);
}
void Mbox1_Btn2Clicked(object sender, EventArgs e)
{
Response.Write("2nd button clicked");
}
void Mbox1_Btn1Clicked(object sender, EventArgs e)
{
Response.Write("1st button clicked");
}
protected void Button1_Click(object sender, EventArgs e)
{
Mbox1.Show("hede", "hod");
}
protected void Button2_Click(object sender, EventArgs e)
{
Mbox1.Show("My test message", "Warning", "OK", "Cancel", null);
}
protected void Button3_Click(object sender, EventArgs e)
{
Mbox1.Show("My test message", "Warning", "OK", "Cancel", null,msg.MessageBoxIcons.Exclamation);
}
protected void Button4_Click(object sender, EventArgs e)
{
Mbox1.Show("My test message", "Warning", "OK", "Cancel", "Retry", msg.MessageBoxIcons.Exclamation,msg.MessageBoxStyle.Violet );
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.