Hi,
I am trying to bind date from a sql table to textbox with TextMode =Date when select the record in GridView record.
But for some reason date is not displaying on the Text Box with TextMode =Date
Are you able to help?
<label for="lblEventDate">
Date of Event/Observation</label>
<asp:TextBox ID="dteventdate" runat="server" class="form-control" TextMode="Time" placeholder="Select Date" ></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ErrorMessage="*Required" ControlToValidate="dteventdate" ForeColor="Red"></asp:RequiredFieldValidator>
<br/>
Dim GridView1 As GridView = DirectCast(Me.Page.PreviousPage.FindControl("GridView1"), GridView)
Dim selectedRow As GridViewRow = GridView1.SelectedRow
txtIncidentID.Text = TryCast(selectedRow.FindControl("lblIncidentID"), Label).Text