Hi,
I have an ascx page which contains the following line:
<%= Html.TextBox("DayOfWeek", Model.JourneyBooking.StartDate.DayOfWeek.ToString(), new { @readonly = "readonly", style = "width:90px" })%>
This is inside an .ascx page and when display it inside a jQuery dialog popup the textbox shows '5' as the contents.
This should show Friday so as a test I added this in the line above the textbox declaration:
<%= Model.JourneyBooking.StartDate.DayOfWeek.ToString() %>
This shows 'Friday' as expected.
What is the difference between using the TextBox helper class and why doesn't it show the Name of the day of the week and shows the integer value instead?