Skip to content

Commit

Permalink
Enable client side validtion, fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchief committed Jul 6, 2012
1 parent 0cc578b commit a8e7727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Ebuy/Website/Models/AuctionViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand All @@ -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; }

}
Expand Down
2 changes: 1 addition & 1 deletion Ebuy/Website/Views/Auctions/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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.