开发者

Compare journey date with return date in asp.net c#

开发者 https://www.devze.com 2023-03-24 05:55 出处:网络
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?

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

精彩评论

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