Hi, I'd like to use a calendar control to edit a date in my mvc application. The ajaxtoolkit's calendarextender seems like a good choice.
However, when I reference the name given in markup, the application reports that the control cannot be found.
How can I reference the textbox created with mvc html-extensions?
Thanks,
Anders, Denmark
Below my first shot which produces an error - targetcontrolid not valid.
<%= Html.TextBox("DateOfEarliestEmail", Model.DateOfEarliestEmail)%>
<ajaxToolKit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="DateOfEarliestEmail" Format="yyyy-MM-dd" PopupButtonID="Image1"/>
<%= Html.ValidationMessage("DateOfEarliestEmail", "*")%>