清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
using ValidationMessage.Controls; namespace ValidationMessage { public class BasePage : System.Web.UI.Page { public void ShowErrorMessage(string message) { Show(message, MessageType.Error); } public void ShowWarningMessage(string message) { Show(message, MessageType.Warning); } public void ShowSuccessMessage(string message) { Show(message, MessageType.Success); } private void Show(string message, MessageType messageType) { if (Page.Master != null) { Message popMsg = Page.Master.FindControl("MsgControl") as Message; if (popMsg != null) { popMsg.ShowPopMessage(message, messageType); } } } } }