コード例 #1
0
        public static string MakeToast(SportClassifier.Web.Infrastructure.Enums.Enumerations.ToastrType toastrType, string message)
        {

            return string.Format("toastr.{0}('{1}');", toastrType.ToString(), message);
        }
コード例 #2
0
        public static string MakeToastPlusScriptTag(SportClassifier.Web.Infrastructure.Enums.Enumerations.ToastrType toastrType, string message)
        {
            return string.Format("<script language='javascript' type='text/javascript'>toastr.{0}('{1}');</script>", toastrType.ToString(), message);

            //return string.Format("toastr.{0}('{1}');", toastrType.ToString(), message);
        }