如果我输入的1.2.1的值到下面我RangeValidator控件,它验证OK <asp:RangeValidator ID="RangeValidator8" runat="server"
ControlToValidate="TextBoxSAPPlannedHrs"
Display="None" ErrorMessage="Must be a valid number 0
不工作我有我想要在我的web表单验证日期... 这里是我使用的验证,但它似乎并没有工作。 .. <asp:RangeValidator ID="rgBHPECoOcuuring" runat="server" ErrorMessage="Assessment Date must be greater than the Birth Date of the Patient and not in the
我有一个ASP.NET Web窗体应用程序与输入出生日期的文本框。 出生日期有一个RangeValidator。 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter a valid date of birth." Display="Dynamic" ControlToValidate=
说我有这样的一个模型属性: [Range(1, 31, ErrorMessage = "O dia de fechamento deve possuir valores entre 1 e 31")]
public int DataInicial { get; set; }
即使在注释设置自定义错误消息,我仍然得到默认当我在@Html.TextBoxFor(model => model.Da