Пример #1
0
        public static string GetOnClientClickConfirm(Control ctrl, MessageWindowParameters message)
        {
            AddMessageWindow(ctrl);

            // function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)
            return(string.Format("return postBackConfirm('{0}', event, '{1}', '{2}', '', '{3}');", message.Message, message.WindowWidth, message.WindowHeight, message.Title));
        }
Пример #2
0
 public static void RegisterAlertOnPageLoad(Control ctrl, MessageWindowParameters message)
 {
     ctrl.Page.ClientScript.RegisterClientScriptBlock(ctrl.GetType(), ctrl.ID + "_AlertOnPageLoad", GetClientAlert(ctrl, message), true);
 }
Пример #3
0
 public static string GetClientAlert(Control ctrl, MessageWindowParameters message)
 {
     return("jQuery(document).ready(function($){$.dnnAlert({ okText: '" + GetLocalizedString("Ok.Text") + "', text: '" + message.Message + "', title: '" + message.Title + "'});});");
 }
Пример #4
0
 public static void RegisterAlertOnPageLoad(Control ctrl, MessageWindowParameters message)
 {
     ctrl.Page.ClientScript.RegisterClientScriptBlock(ctrl.GetType(), ctrl.ID + "_AlertOnPageLoad", GetClientAlert(ctrl, message), true);
 }
Пример #5
0
 public static string GetOnClientClickConfirm(Control ctrl, MessageWindowParameters message)
 {
     AddMessageWindow(ctrl);
     //function(text, mozEvent, oWidth, oHeight, callerObj, oTitle) 
     return string.Format("return postBackConfirm('{0}', event, '{1}', '{2}', '', '{3}');", message.Message, message.WindowWidth, message.WindowHeight, message.Title);
 }
Пример #6
0
 public static string GetClientAlert(Control ctrl, MessageWindowParameters message)
 {
     return "jQuery(document).ready(function($){$.dnnAlert({ okText: '" + GetLocalizedString("Ok.Text") + "', text: '" + message.Message + "', title: '" + message.Title + "'});});";
 }