Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to check input date is correct format or not in sharepoint date time control with compare validator

$
0
0

hi, i am creating dynamically on sharepoint date time controls in one link button click i need to check the input string is in date format or not uisng compare validator in code behind how can i do it can any one help me

for static controls i am uisng this like below

<sharePoint:DateTimeControl ID="dteDemo" runat="server" DateOnly="true" /><asp:CompareValidator id="valDate" runat="server" ForeColor="Red" ControlToValidate="dteDemo$dteDemoDate" Type="Date" Operator="DataTypeCheck" ErrorMessage="Please enter an valid date"></asp:CompareValidator >

how can i passw "Type, Operator, controltovalidate from code behind


Srinivas


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>