You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to call a partial page on layout page. but the layout page get rendered multiple times. Just add the following line on layout page and bug can be reproduced
This sounds like a setup issue rather than anything Moth does. Is your partial implemented like this in the controller (especially, returning a PartialView()):
[ChildActionOnly]
public ActionResult CurrentDateTime()
{
return PartialView();
}
Also check that your view does not have Layout="xxx" near the top, where xxx is the path to your _layout.cshtml
I am trying to call a partial page on layout page. but the layout page get rendered multiple times. Just add the following line on layout page and bug can be reproduced
@{ Html.RenderAction("CurrentDateTime", "Home"); }
The text was updated successfully, but these errors were encountered: