ASP_MVC webClient tillagd
This commit is contained in:
26
MVCUI/App_Start/BundleConfig.vb
Normal file
26
MVCUI/App_Start/BundleConfig.vb
Normal file
@ -0,0 +1,26 @@
|
||||
Imports System.Web.Optimization
|
||||
|
||||
Public Module BundleConfig
|
||||
' For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
|
||||
Public Sub RegisterBundles(ByVal bundles As BundleCollection)
|
||||
|
||||
bundles.Add(New ScriptBundle("~/bundles/jquery").Include(
|
||||
"~/Scripts/jquery-{version}.js"))
|
||||
|
||||
bundles.Add(New ScriptBundle("~/bundles/jqueryval").Include(
|
||||
"~/Scripts/jquery.validate*"))
|
||||
|
||||
' Use the development version of Modernizr to develop with and learn from. Then, when you're
|
||||
' ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
|
||||
bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
|
||||
"~/Scripts/modernizr-*"))
|
||||
|
||||
bundles.Add(New ScriptBundle("~/bundles/bootstrap").Include(
|
||||
"~/Scripts/bootstrap.js"))
|
||||
|
||||
bundles.Add(New StyleBundle("~/Content/css").Include(
|
||||
"~/Content/bootstrap.css",
|
||||
"~/Content/site.css"))
|
||||
End Sub
|
||||
End Module
|
||||
|
||||
8
MVCUI/App_Start/FilterConfig.vb
Normal file
8
MVCUI/App_Start/FilterConfig.vb
Normal file
@ -0,0 +1,8 @@
|
||||
Imports System.Web
|
||||
Imports System.Web.Mvc
|
||||
|
||||
Public Module FilterConfig
|
||||
Public Sub RegisterGlobalFilters(ByVal filters As GlobalFilterCollection)
|
||||
filters.Add(New HandleErrorAttribute())
|
||||
End Sub
|
||||
End Module
|
||||
18
MVCUI/App_Start/RouteConfig.vb
Normal file
18
MVCUI/App_Start/RouteConfig.vb
Normal file
@ -0,0 +1,18 @@
|
||||
Imports System
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Linq
|
||||
Imports System.Web
|
||||
Imports System.Web.Mvc
|
||||
Imports System.Web.Routing
|
||||
|
||||
Public Module RouteConfig
|
||||
Public Sub RegisterRoutes(ByVal routes As RouteCollection)
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
|
||||
|
||||
routes.MapRoute(
|
||||
name:="Default",
|
||||
url:="{controller}/{action}/{id}",
|
||||
defaults:=New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional}
|
||||
)
|
||||
End Sub
|
||||
End Module
|
||||
Reference in New Issue
Block a user