简体   繁体   中英

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="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"  
    Inherits="System.Web.Mvc.ViewPage<MvcGridSample
                    .ViewModels.Shared.Grid<Customer, CustomerSearchForm>>" %>

此行的正确VB语法是:

<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of MvcGridSample.ViewModels.Shared.Grid(Of Customer, CustomerSearchForm))" %>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM