Greetings;
So I have a Web Form that Allows users to input date time using a asp:text box tag helper.
After submitting the form a admin can then go back and view the date and time, and change if necessary.
I am able to properly retrieve previous date from the Server thus far; using a secondary page load.
My problem is that I want to use the same asp:text type="data" as an input place data from a different page and also use it as a input as well, however
because the default field is shown as mm/dd/yyyy it is not showing the pre loaded data.
-Any simple recommendations would help thanks.
Code:<asp:Label ID="Label7" runat="server" CssClass="label"> Date of Placement if known</asp:Label><br /> <asp:TextBox ID="txtTime" type ="date" runat="server"> </asp:TextBox><br>
Code:Private Sub PageLoad() ' Dim Item As Generic.List(Of OPS.ListItem.DataItemFind) For Each oItem As OPS.ListItem.DataItemFind In Item.() Me.txtTime.Text = oItem.txtTime.ToString("MM/dd/yyyy") Me.txtTime.Text = oItem.txtTime Next End Sub


Reply With Quote
