Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using gridview control , and in gridview i used a textbox with dateextender cotrol . Now I wanted to validate the textbox for the current year and date must be greater than today.
some code inside gridview



XML
<ItemTemplate>
                                        <asp:TextBox ID="txtdeadline" contentEditable="False" runat="server"
                                Height="28px" Width="57px"></asp:TextBox>
                                        <asp:CalendarExtender ID="txtdeadline_CalendarExtender" runat="server"
                                Enabled="True" TargetControlID="txtdeadline">
                                        </asp:CalendarExtender>


                                    </ItemTemplate>
Posted
Updated 4-Feb-14 20:25pm
v2

1 solution

 
Share this answer
 
Comments
Ni!E$H_WAGH 5-Feb-14 3:46am    
thanks
kedar001 5-Feb-14 4:09am    
please Accept Solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900