Setting up an ASP.NET MVC View to work in VB.NET
How would I write the following ASP.NET MVC C# code in VB.NET?
<%@ Page Title="" Langu开发者_StackOverflowage="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<MvcGridSample
.ViewModels.Shared.Grid<Customer, CustomerSearchForm>>" %>
The correct VB Syntax for this line is:
<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of MvcGridSample.ViewModels.Shared.Grid(Of Customer, CustomerSearchForm))" %>
精彩评论