|
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace mtweb
{
/////////////////////////////////////////////////////////////////////
public partial class ShopComputers : DControl
{
///////////////////////////////////////////////
// Events
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!UCPostBack) UCPostBack = true;
}
protected void Page_Load(object sender, EventArgs e)
{
}
///////////////////////////////////////////////
// Properties
protected bool UCPostBack
{
get {
return ViewState["UCPostBack"] == null ? false : true;
}
set { ViewState["UCPostBack"] = true; }
}
protected DefaultPage DefPage
{
get { return this.Page as DefaultPage; }
}
///////////////////////////////////////////////
// Click handlers
protected void OnCloseClick(object sender, ImageClickEventArgs e)
{
DefPage.CloseContent();
}
protected void OnMenuItemClick(object sender, CommandEventArgs e)
{
string from = ((Control)sender).ClientID;
string cmd = e.CommandName;
string arg = e.CommandArgument as string;
string s = "CommandName = " + cmd + "<br/>";
s += "CommandArgument = " + arg + "<br/>";
s += "Sender: " + from;
SelectionInfo.Text = s;
}
} // class
} // namespace
|
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.