|
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.Web.UI.HtmlControls;
/// <summary>
/// Summary description for BaseMasterPage
/// </summary>
public class BaseMasterPage : System.Web.UI.MasterPage
{
#region Protected Fields
protected HtmlControl App_Error;
protected Label lblErrorMessage;
protected HtmlControl App_Warning;
protected Label lblWarningMessage;
protected HtmlControl App_Information;
protected Label lblInformationMessage;
protected Menu mnuMain;
protected SiteMapPath SiteMapPath1;
#endregion
#region Public Properties
/// <summary>
/// Sets the Application Level error essage.
/// </summary>
/// <value>The error message.</value>
public string ErrorMessage
{
set
{
lblErrorMessage.Text = value.Replace("\n", "<br />");
App_Error.Visible = true;
}
}
public string WarningMessage
{
set
{
lblWarningMessage.Text = value.Replace("\n", "<br />");
App_Warning.Visible = true;
}
}
public string InformationMessage
{
set
{
lblInformationMessage.Text = value.Replace("\n", "<br />");
App_Information.Visible = true;
}
}
public Menu MainMenu { get { return mnuMain; } }
public SiteMapPath SiteMapPath { get { return SiteMapPath1; } }
#endregion
}
|
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.