public static void ShowAutoHideAndRedirect(System.Web.UI.Page page, string title, string message, EmnMessageBoxIcon icon, string redirecturl, int hideinterval, int width, int height) { WebMessageBox msgbox = new WebMessageBox(); msgbox.Title = title; msgbox.Message = message; msgbox.MsgIcon = icon; msgbox.Width = width; msgbox.Height = height; msgbox.AutoHideInterval = hideinterval; msgbox.Redirecturl = redirecturl; try { foreach (System.Web.UI.Control ctl in page.Controls) { if (typeof(System.Web.UI.HtmlControls.HtmlForm).IsInstanceOfType(ctl)) { ctl.Controls.Add(msgbox); return; } } } catch { } page.Controls.Add(msgbox); }
public static void ShowAutoHideAndRedirect(System.Web.UI.Page page, string title, string message, EmnMessageBoxIcon icon, string redirecturl, int hideinterval) { ShowAutoHideAndRedirect(page, title, message, icon, redirecturl, hideinterval, DEFAULT_WIDTH, DEFAULT_HEIGHT); }
public static void ShowAutoHide(System.Web.UI.Page page, string title, string message, EmnMessageBoxIcon icon) { ShowAutoHide(page, title, message, icon, DEFAULT_INTERVAL, DEFAULT_WIDTH, DEFAULT_HEIGHT); }
public static void ShowAutoHideAndRedirect(System.Web.UI.Page page, string title, string message, EmnMessageBoxIcon icon, string redirecturl, int width, int height) { ShowAutoHideAndRedirect(page, title, message, icon, redirecturl, DEFAULT_INTERVAL, width, height); }
public static void Show(System.Web.UI.Page page, string title, string message, EmnMessageBoxIcon icon, int width, int height) { WebMessageBox msgbox = new WebMessageBox(); msgbox.Title = title; msgbox.Message = message; msgbox.MsgIcon = icon; msgbox.Width = width; msgbox.Height = height; foreach (System.Web.UI.Control ctl in page.Controls) { if (typeof(System.Web.UI.HtmlControls.HtmlForm).IsInstanceOfType(ctl)) { ctl.Controls.Add(msgbox); return; } } page.Controls.Add(msgbox); }