Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

I am trying to validate a date field in a gridview. How woul I define "CheckDate" ?

Where would I define "CheckDate"? in the following HTML?

<asp:TemplateField HeaderText="Created" ItemStyle-HorizontalAlign="Left">
                    <EditItemTemplate>                                        
                               <asp:TextBox ID="txtdtCreated" MaxLength="10" runat="server" Text='<%# Bind("CheckDate", "{0:MM/dd/yyyy}") %>'></asp:TextBox>                    
                    </EditItemTemplate>                      
                                         
                    <ItemTemplate>
                         <asp:Label ID="lbldtCreated" runat="server" Text='<%# Eval("dtCreated") %>'></asp:Label>
                    </ItemTemplate>
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zimmer9

ASKER

A date that was entered by the user into a gridview.