Mvc 4: Show ValidationSummary MVC3 as "alert-error" Bootstrap

ASP
Copy to clipboard
fablecode
  1. @Html.ValidationSummary(false, "", new { @class = "alert alert-danger" })
  2.  
  3. .validation-summary-valid.alert-danger {
  4.     display: none;
  5. }

    Leave a comment

     
    Visual verification
     

    Related books

    More InfoASP.NET For Beginners: The Simple Guide to Learning ASP.NET Web Programming Fast!
    ASP.NET For Beginners: The Simple Guide to Learning ASP.NET Web Programming Fast!
    More InfoMurach's ASP.NET 4.6 Web Programming with C# 2015
    Murach's ASP.NET 4.6 Web Programming with C# 2015
    More InfoProgramming ASP.NET MVC 4: Developing Real-World Web Applications with ASP.NET MVC
    Programming ASP.NET MVC 4: Developing Real-World Web Applications with ASP.NET MVC
    More InfoASP.NET MVC 5 - Building a Website with Visual Studio 2015 and C Sharp: The Tactical Guidebook
    ASP.NET MVC 5 - Building a Website with Visual Studio 2015 and C Sharp: The Tactical Guidebook
    More InfoMurach's ASP.NET 4.5 Web Programming with C# 2012 (Murach: Training & Reference)
    Murach's ASP.NET 4.5 Web Programming with C# 2012 (Murach: Training & Reference)
    More InfoC# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
    C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
    More InfoASP.NET Programming Success in a Day: Beginners guide to fast, easy and efficient learning of ASP.NET programming
    ASP.NET Programming Success in a Day: Beginners guide to fast, easy and efficient learning of ASP.NET programming
    More InfoEssential Docker for ASP.NET Core MVC
    Essential Docker for ASP.NET Core MVC