jquery Programming Glossary: dobyear
How to validate a date using 3 dropdowns( day, month, year ) using jquery unobtrusive validation? http://stackoverflow.com/questions/11475670/how-to-validate-a-date-using-3-dropdowns-day-month-year-using-jquery-unobtr .Name DobMonth .BindTo SelectList ViewData Months .HtmlAttributes new id DobMonthSel @Html.Telerik .DropDownList .Name DobYear .BindTo SelectList ViewData Years .HtmlAttributes new id DobYearSel @Html.ValidationMessageFor m m.DateOfBirth div On the.. new id DobMonthSel @Html.Telerik .DropDownList .Name DobYear .BindTo SelectList ViewData Years .HtmlAttributes new id DobYearSel @Html.ValidationMessageFor m m.DateOfBirth div On the server side i do this HttpPost public ActionResult Register RegistrationModel.. the server side i do this HttpPost public ActionResult Register RegistrationModel regInfo int DobDay int DobMonth int DobYear SetRegisterViewData DobDay DobMonth DobYear if DobDay 0 DobMonth 0 DobYear 0 ModelState.AddModelError DateOfBirth Date..
|