Re: Dropdownlist,checkbox,radio button Validation
Riondid the same. no effect in dropdownlistModel: [Required] [Display(Name = "Latest thinking")] public string list { get; set; } View @model MVCTest.Models.MainModel @{ ViewBag.Title = "Create";...
View ArticleRe: Dropdownlist,checkbox,radio button Validation
In order for Model-level validation to work, the name attribute on the element that you wish to validate has to match the property name on your model exactly. Currently, you are using the value "list"...
View ArticleDropdownlist,checkbox,radio button Validation
Hi,I need to validate the dropdownlist,radio button,checkboxHere is the codeController: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc;...
View ArticleRe: Dropdownlist,checkbox,radio button Validation
It should be working.Are you trying to perform client-side validation (i.e. prior to the form being posted)? If so - you will need to make sure to include the necessary client-side validation libraries...
View Article