user918064
user918064

Reputation: 145

Date Picker not updating - MVC

Using MVC 3 Razor with Entity Framework

In my edit form I need to edit a StartDate field with the following code:

 <div class="editor-label">
        @Html.LabelFor(model => model.StartDate)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.StartDate)
        @Html.ValidationMessageFor(model => model.StartDate)
    </div>

When editing the date picker opens up fine, I select a different date but then the date in the textbox doesn't update.

Am I missing something?

Upvotes: 0

Views: 570

Answers (1)

MondayPaper
MondayPaper

Reputation: 1579

I would just reply, but I don't have that priveledge yet. I recommend using firebug or some other tool to watch for javascript errors. If it is not populating the text box, then something is breaking down on the client side. Could be you're missing a script or an error somewhere else on the page is causing it to break down.

Upvotes: 1

Related Questions