Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net asp-Web表单与asp-mvc的集成_Asp.net_Asp.net Mvc_Vb.net_Webforms - Fatal编程技术网

Asp.net asp-Web表单与asp-mvc的集成

Asp.net asp-Web表单与asp-mvc的集成,asp.net,asp.net-mvc,vb.net,webforms,Asp.net,Asp.net Mvc,Vb.net,Webforms,如何使用visual basic集成asp web窗体和asp MVC 4使用C。请帮助我!!! 我有一个问题: 文件Global.asax.cs: AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(Bun

如何使用visual basic集成asp web窗体和asp MVC 4使用C。请帮助我!!! 我有一个问题:

文件Global.asax.cs:

AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
文件Login.aspx.vb:

Partial Class Login
Inherits System.Web.UI.Page

Private WithEvents objA2Global As A2Component.A2Global ' RapidISGlobal  ' A2Component.A2Global
文件Global.asax:

%@ Application Codebehind="Global.asax.cs" Inherits="RapidIS.MvcApplication" Language="VB" %>

<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>

如果您使用的是一个分为两个文件的分部类,则必须在这两个文件中编写相同的类声明。我已经阅读了错误,它说您必须对这些文件使用相同的增强。

请在您的问题中提供您的错误和代码的副本。图像是无用的,即使他们现在可以看到。我添加一些请帮助我!!!
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
        routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
        );
    }
    protected void Application_Start()
    {
        RegisterRoutes(RouteTable.Routes);
    }