Permalink
Browse files

Enable client side validtion, fix error message

  • Loading branch information...
1 parent 0cc578b commit a8e7727f6f18e35f6ab2b3844088a018cf7416f8 @mrchief mrchief committed Jul 6, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 Ebuy/Website/Models/AuctionViewModel.cs
  2. +1 −1 Ebuy/Website/Views/Auctions/Create.cshtml
View
4 Ebuy/Website/Models/AuctionViewModel.cs
@@ -110,7 +110,7 @@ public string RemainingTimeDisplay
public BidViewModel SuccessfulBid { get; set; }
[Required]
- [StringLength(50, ErrorMessage = "Titles cannot be longer than {0} characters")]
+ [StringLength(50, ErrorMessage = "Titles cannot be longer than 50 characters")]
public string Title { get; set; }
public Bid WinningBid { get; set; }
@@ -127,7 +127,7 @@ public string WinningBidUsername
}
[Range(1, 10000,
- ErrorMessage = "The auction's starting price must be at least {0}")]
+ ErrorMessage = "The auction's starting price must be at least 1")]
public decimal StartPrice { get; set; }
}
View
2 Ebuy/Website/Views/Auctions/Create.cshtml
@@ -40,5 +40,5 @@
</div>
@section Scripts {
- @*@Scripts.Render("~/bundles/jqueryval")*@
+ @Scripts.Render("~/bundles/jqueryval")
}

0 comments on commit a8e7727

Please sign in to comment.