I have a Master Page in MVC3(ASPX) where I have a sign in feature at the top . So it uses a Sign In Model(User Name,Password). As this is in the Master Page when In the view Page I try to use a different Model it shows an error,as it tries to access the Sign in Model.
Can anyone Help me in this regard?
Master Page
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage
<%@ Import Namespace="MVCControlsToolkit.Controls" %>
<%@ Import Namespace="MVCControlsToolkit.Controls.Validation" %>
<% ThemedControlsStrings.SetTheme("Test"); %>
| ||||
Content Page
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage
Index
Recipes -> List
Name | Description | Active | |
|---|---|---|---|
<%: Html.DisplayFor(modelItem => item.Name) %> | <%: Html.DisplayFor(modelItem => item.Description) %> | <%: Html.DisplayFor(modelItem => item.Active) %> | <%: Html.ActionLink("Edit", "Edit", new { id=item.IngredientId }) %> | <%: Html.ActionLink("Details", "Details", new { id=item.IngredientId }) %> | <%: Html.ActionLink("Delete", "Delete", new { id=item.IngredientId }) %> |

brunda kPosted Jun 19, 2012, 8:36 AM