开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜