Using System;
Using System. Web;
Using System. text;
Namespace Pub. Class {
/// <Summary>
/// Output Message class
/// </Summary>
Public Class MSG {
# Region Write
/// <Summary>
/// Output Message
/// </Summary>
/// <Param name = "MSG"> Message Content </Param>
Public Static Void Write ( String MSG) {httpcontext. Current. response. Write (MSG );}
Public Static Void Write ( String Format, Params Object [] ARGs) {httpcontext. Current. response. Output. Write (format, argS );}
Public Static Void Write ( Object MSG) {write (msg. tostring ());}
Public Static Void Writeend ( String MSG) {MSG. Write (MSG); MSG. End ();}
Public Static Void Writeend ( String Format, Params Object [] ARGs) {MSG. Write (format, argS); MSG. End ();}
Public Static Void Writeend ( Object MSG) {writeend (msg. tostring ());}
/// <Summary>
/// Output messages to the htmlgenericcontrol Control
/// </Summary>
/// <Param name = "control"> Htmlgenericcontrol Control </Param>
/// <Param name = "MSG"> Message Content </Param>
/// <Param name = "isadd"> Tired or not </Param>
Public Static Void Write (system. Web. UI. htmlcontrols. htmlgenericcontrol control, String MSG, Bool Isadd ){
If (Isadd) control. innerhtml + = MSG; Else Control. innerhtml = MSG;
}
# Endregion
# Region End
/// <Summary>
/// Terminate page running
/// </Summary>
Public Static Void End () {httpcontext. Current. response. End ();}
# Endregion
Public Static Void Redirect ( String URL) {httpcontext. Current. response. Redirect (URL );}
}
}