This topic is locked

Validation mishap

7/15/2004 4:19:26 AM
ASPRunnerPro General questions
author

Hi,

This works only if there are other errors that are being flagged to the user. If it is the only error then the report gets submitted. Why?
Thanks,

Bandit
<%

if CDate(Request.Form("VisitDate"))> Date() then

%>

<tr bgcolor="#cccccc"><td bgcolor="#ccccff"><b>Enter new Visit Date - you cannot forward date a report</b></td>

</tr>

<% end if %>

Sergey Kornilov admin 7/18/2004

Bandit,
I'm not sure I undertand what is the problem with this code. Please clarify.