Skip to content

Commit 72cec28

Browse files
authored
ASP.NET MVC VB
1 parent 0a30dc8 commit 72cec28

File tree

86 files changed

+39964
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+39964
-0
lines changed

WCPMVCVB/App_Start/BundleConfig.vb

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Imports System.Web.Optimization
2+
3+
Public Module BundleConfig
4+
' For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
5+
Public Sub RegisterBundles(ByVal bundles As BundleCollection)
6+
7+
bundles.Add(New ScriptBundle("~/bundles/jquery").Include(
8+
"~/Scripts/jquery-{version}.js"))
9+
10+
bundles.Add(New ScriptBundle("~/bundles/jqueryval").Include(
11+
"~/Scripts/jquery.validate*"))
12+
13+
' Use the development version of Modernizr to develop with and learn from. Then, when you're
14+
' ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
15+
bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
16+
"~/Scripts/modernizr-*"))
17+
18+
bundles.Add(New ScriptBundle("~/bundles/bootstrap").Include(
19+
"~/Scripts/bootstrap.js"))
20+
21+
bundles.Add(New StyleBundle("~/Content/css").Include(
22+
"~/Content/bootstrap.css",
23+
"~/Content/site.css"))
24+
End Sub
25+
End Module
26+

WCPMVCVB/App_Start/FilterConfig.vb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Imports System.Web
2+
Imports System.Web.Mvc
3+
4+
Public Module FilterConfig
5+
Public Sub RegisterGlobalFilters(ByVal filters As GlobalFilterCollection)
6+
filters.Add(New HandleErrorAttribute())
7+
End Sub
8+
End Module

WCPMVCVB/App_Start/RouteConfig.vb

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Imports System
2+
Imports System.Collections.Generic
3+
Imports System.Linq
4+
Imports System.Web
5+
Imports System.Web.Mvc
6+
Imports System.Web.Routing
7+
8+
Public Module RouteConfig
9+
Public Sub RegisterRoutes(ByVal routes As RouteCollection)
10+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
11+
12+
routes.MapRoute(
13+
name:="Default",
14+
url:="{controller}/{action}/{id}",
15+
defaults:=New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional}
16+
)
17+
End Sub
18+
End Module

WCPMVCVB/Content/Site.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}

0 commit comments

Comments
 (0)