Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
View
@@ -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; }
}
2  Ebuy/Website/Views/Auctions/Create.cshtml
View
@@ -40,5 +40,5 @@
</div>
@section Scripts {
- @*@Scripts.Render("~/bundles/jqueryval")*@
+ @Scripts.Render("~/bundles/jqueryval")
}
Please sign in to comment.
Something went wrong with that request. Please try again.