This class is used to display messages with a single command via the DisplayMessage() method. This class also has the ability to automatically redirect to another page which allows moving to new pages and still be able to set Cookies if required.
This class is abstract and requires an application specific subclass - generally MessageDisplay.aspx that must follow a few simple but Creating a custom MessageDisplay page.
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.Page
Westwind.Web.Controls.MessageDisplayBase
public class MessageDisplayBase : Page
Class Members
Member | Description | |
---|---|---|
Constructor |
||
Pagename |
Static member that determines the name of the MessageDisplay page. | |
DisplayMessage |
Generates a self-contained error message display page that issues a Server.Transfer to the MessageDisplay.aspx page in your application root. public static void DisplayMessage(string TemplatePageName, string Header, string Message, string RedirectUrl, int Timeout) public static void DisplayMessage(string Header, string Message, string RedirectUrl, int Timeout) public static void DisplayMessage(string Header, string Message) |
|
DisplayPage |
Displays the page with the appropriate controls filled in. public void DisplayPage(Label messageHeader, Label message, Label redirectHyperLink) public void DisplayPage() |
|
BasePath |
This property is set during the loading of the page and can be used inside of the page to allow relative links to be found. | |
StyleSheet |
A stylesheet reference that gets embedded into the page if set. |
Requirements
Namespace: Westwind.Web.ControlsAssembly: westwind.web.webforms.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic