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; }
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); }
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); }