說我有這樣的一個模型屬性: [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
如果我輸入的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=