-4
如何整合asp網頁窗體使用Visual Basic與asp MVC 4使用C#。幫幫我! 我有問題:集成asp Web窗體與asp mvc
文件的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);
}
請在您的問題中提供您的錯誤和代碼的副本。圖像是無用的(即使他們現在可以看到)。 – Tom
我添加一些請幫助我! –