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 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 InfoMurach's ASP.NET 4.6 Web Programming with C# 2015
    Murach's ASP.NET 4.6 Web Programming with C# 2015
    More InfoMicrosoft Access 2016 Programming By Example: with VBA, XML, and ASP
    Microsoft Access 2016 Programming By Example: with VBA, XML, and ASP
    More InfoProgramming Microsoft ASP.NET MVC (3rd Edition) (Developer Reference)
    Programming Microsoft ASP.NET MVC (3rd Edition) (Developer Reference)
    More InfoASP.NET Web API 2 Recipes: A Problem-Solution Approach
    ASP.NET Web API 2 Recipes: A Problem-Solution Approach
    More InfoMurach's ASP.NET 4.5 Web Programming with VB 2012 (Training & Reference)
    Murach's ASP.NET 4.5 Web Programming with VB 2012 (Training & Reference)
    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 InfoExcel 2007 VBA Programming With XML And ASP (Wordware Applications Library)
    Excel 2007 VBA Programming With XML And ASP (Wordware Applications Library)