I have a table that displays data. Each row of table has Edit button. When edit button is clicked a jquery dialog appears with Form for editing the user info and save and ca
Hi without writing any Jscript we can us inbuilt unobstrusive features. as below.
Model
Public class Model{[Required(ErrorMessage = "Required.")]
[Range(0, int.MaxValue, ErrorMessage = "Please enter a Number")]
public int NumberOfPosters { get; set; }}
Partial View
@Html.TextBoxFor(model => model.NumberOfPosters, new { style="width:150px;"})
@Html.ValidationMessageFor(model => model.NumberOfPosters)