Thursday, July 25, 2019
In this post we will go over the process of enabling ASP.NET MVC in our application. Just like static files, in order for us to use MVC in our application we have to tell ASP.NET Core to use Mvc in the Startup.cs file. We will continue to use the application "NorthwindCafe" that we used in our previous blog.
Here are the steps to add MVC to your application:
1. Open the Startup.cs file, then in "Configure" method type in the following to enable MVC
The app.UseMvc method tells the application to use ASP.NET Core MVC framework for this application
Even though we have enabled MVC in our application we haven't configure any routes for it. We will do that in the next post.
github Repository: https://github.com/techjunkiejh/NorthwindCafe/tree/Hour3
Here are the steps to add MVC to your application:
1. Open the Startup.cs file, then in "Configure" method type in the following to enable MVC
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStaticFiles(); app.UseMvc(); }
The app.UseMvc method tells the application to use ASP.NET Core MVC framework for this application
Even though we have enabled MVC in our application we haven't configure any routes for it. We will do that in the next post.
github Repository: https://github.com/techjunkiejh/NorthwindCafe/tree/Hour3
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ
vietnam airlines quốc tế
lich bay tu duc ve viet nam
tình hình vé máy bay từ nhật về việt nam
ve may bay vietnam airline tu han quoc ve viet nam
vé máy bay từ Toronto về việt nam
chi phí vé máy bay cho chuyên gia nước ngoài
Đặt vé máy bay tại Aivivu, tham khảo
ReplyDeletegia ve may bay di my
vé máy bay từ mỹ về việt nam bao nhiêu
chuyến bay thương mại từ canada về việt nam
đặt vé từ nhật về việt nam
mở lại đường bay việt nam - hàn quốc
Vé máy bay từ Đài Loan về VN
Chi phi cho chuyen gia nuoc ngoai