Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Enable client side validtion, fix error message

  • Loading branch information...
commit a8e7727f6f18e35f6ab2b3844088a018cf7416f8 1 parent 0cc578b
Hrusikesh Panda mrchief authored
4 Ebuy/Website/Models/AuctionViewModel.cs
@@ -110,7 +110,7 @@ public string RemainingTimeDisplay
110 110 public BidViewModel SuccessfulBid { get; set; }
111 111
112 112 [Required]
113   - [StringLength(50, ErrorMessage = "Titles cannot be longer than {0} characters")]
  113 + [StringLength(50, ErrorMessage = "Titles cannot be longer than 50 characters")]
114 114 public string Title { get; set; }
115 115
116 116 public Bid WinningBid { get; set; }
@@ -127,7 +127,7 @@ public string WinningBidUsername
127 127 }
128 128
129 129 [Range(1, 10000,
130   - ErrorMessage = "The auction's starting price must be at least {0}")]
  130 + ErrorMessage = "The auction's starting price must be at least 1")]
131 131 public decimal StartPrice { get; set; }
132 132
133 133 }
2  Ebuy/Website/Views/Auctions/Create.cshtml
@@ -40,5 +40,5 @@
40 40 </div>
41 41
42 42 @section Scripts {
43   - @*@Scripts.Render("~/bundles/jqueryval")*@
  43 + @Scripts.Render("~/bundles/jqueryval")
44 44 }

0 comments on commit a8e7727

Please sign in to comment.
Something went wrong with that request. Please try again.