Exemple #1
0
        public void Message(EnumAlertType type, string message)
        {
            String script = @"<script type='text/javascript'>fn_message('" + type.GetStringValue() + "', '" + message + "');</script>";

            Page.ClientScript.RegisterStartupScript(typeof(Page), "message", script);
        }
 public AlertVM(string body, EnumAlertType type = EnumAlertType.danger, bool isDismissble = true)
 {
     Type = type; Body = new HtmlString(body); IsDismissible = isDismissble;
 }
Exemple #3
0
 public void Message(EnumAlertType type, String message, String typeOrder)
 {
     ClientScript.RegisterStartupScript(typeof(Page), "message", @"<script type='text/javascript'>fn_message('" + type.GetStringValue() + "', '" + message + "','" + typeOrder.Trim() + "');</script>", false);
 }
Exemple #4
0
 public void Message(EnumAlertType type, String message)
 {
     ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "message", @"<script type='text/javascript'>fn_message('" + type.GetStringValue() + "', '" + message + "');</script>", false);
 }