Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Need to compare Two SharePoint Date-time Control in Gridview

$
0
0

Hi,

I am using asp Grid View and Put My two Date controls in it, I need to Check that End Date should be greater than Start Date. asp:CompareValidator does not accept the value to Compare as another control.

here is my code.

<asp:TemplateField HeaderText="Start Date"><ItemTemplate><SharePoint:DateTimeControl ID="StartDate" runat="server" DateOnly="true" UseTimeZoneAdjustment="false" MinDate="" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="End Date"><ItemTemplate><SharePoint:DateTimeControl ID="EndDate" runat="server" DateOnly="true" />             </ItemTemplate></asp:TemplateField></Columns></asp:GridView></div>

Please help me.

Thanks in advance.


With Thanks and Regards, Azra


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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