0
不工作我有我想要在我的web表單驗證日期...範圍驗證在asp.net
這裏是我使用的驗證,但它似乎並沒有工作。 ..
<asp:RangeValidator ID="rgBHPECoOcuuring" runat="server" ErrorMessage="Assessment Date must be greater than the Birth Date of the Patient and not in the future"
ValidationGroup="save" ControlToValidate="dtAssessmentDate" Display="None" >
</asp:RangeValidator>
所以,我做的是我顯示lbDOB一個DOB - 就是我希望做的是確保日期是不是在未來,必須至少比出生日期
更大有沒有想法?
你缺少了'Type','MinimumValue'和'MaximumValue'。範圍驗證程序如何在沒有範圍的情況下進行驗證。 – VDWWD