Compare journey date with return date in asp.net c#
I have开发者_StackOverflow to compare Journey date with return date. Return date should be Greater than equal to journey date. Which validator should be used for that & how? Help me. Asp.net c#. Thank you.
You can use CustomValidator and check the validation in client-side or server-side
<asp:CustomValidator ID="cvComment" runat="server" ClientValidationFunction="clientCheckDateTime"
Enabled="true" Display="Dynamic" ControlToValidate="[Control ID]" Text="[Your Message]" />
<script language="javascript" type="text/javascript">
function clientCheckDateTime(source, arguments) {
arguments.IsValid = [Check Validation];
}
</script>
精彩评论