This is a migrated thread and some comments may be shown as answers.

[Solved] Date Pickers in partial view & cache

0 Answers 15 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
andrey
Top achievements
Rank 1
andrey asked on 06 Feb 2012, 02:17 PM
Hello,
I trying to cache partial view with Date Picker.

First time (no cache) Date Picker work.
Second time (cache) Date Picker doesn't work.

Thanks,
Andrey

View:
@Html.Action("_SearchBox", "Page")
Controler:
[ChildActionOnly]
[OutputCache(Duration = 3600)]
public ActionResult _SearchBox()
{
    return View(new Uco.Models.Search());
}
Partial View:
@model Uco.Models.Search
@using (Html.BeginForm("Search", "Page", new { name = "Search3" }, FormMethod.Post, null))
{
      @Html.EditorFor(model => model.ToDate)
}
Tags
Date/Time Pickers
Asked by
andrey
Top achievements
Rank 1
Share this question
or