i am trying to render 2 partial views using same loginmodel:
<div id="divLoginPopupContent" class="popupContent">
<div id="divLPBox"><% Html.RenderPartial("LoginPopup", ViewData["LoginModel"]); %></div>
<div id="divFBBox"><% Html.RenderPartial("RetrievePassword", ViewData["LoginModel"]); %></div>
</div>
and it is giving me an error
and ViewData["LoginModel"] = new LoginModel();
can you tell me whats the problem?
You are likely having more than one
<%@ Control ... >directives in one of your partialsLoginPopup.ascxorRetrievePassword.ascx. Make sure there is only one control directive.