I think this is a namespace issue, and the answer is probably dead simple, but I'm new at this MVC stuff.
I have multiple views named "Index." This was not a problem until I tried to create a new, strongly-typed view named "Index."
(For what its worth, I'm trying to follow along with the steps in the NerdDinner sample, but in VB instead of C#.)
When I added the strongly-typed view named "Index," the compiler threw this error:
Base class 'System.Web.Mvc.ViewPage(Of System.Collections.Generic.List(Of Models.User))' specified for class 'Index' cannot be different from the base class 'System.Web.Mvc.ViewPage' of one of its other partial types.
Can someone enlighten me on why this is happening, and what I can do to alleviate the problem?
Thanks in advance.
VIEW:
<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master"
AutoEventWireup="false" CodeBehind="Index.aspx.vb"
Inherits="SampleSite.Index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
Code Behind:
Imports System.Web.Mvc
Imports System.Collections.Generic
Partial Public Class Index Inherits System.Web.Mvc.ViewPage(Of List(Of SampleSite.Models.User))
End Class