Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / MVC

MVC

MVC

Great Reads

by Bryian Tan
The author is sharing an article on how to create a help tooltip for a HTML element using Web API, Bootstrap Popover and jQuery UI dialog
by Sam_IN
In this post, we will explore some important tips while working on MVC5. These tips are useful while hands on ASP.NET MVC.
by Akhil Mittal
Repository pattern in MVC3 application with entity framework
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

Latest Articles

by Bryian Tan
The author is sharing an article on how to create a help tooltip for a HTML element using Web API, Bootstrap Popover and jQuery UI dialog
by Sam_IN
In this post, we will explore some important tips while working on MVC5. These tips are useful while hands on ASP.NET MVC.
by Akhil Mittal
Repository pattern in MVC3 application with entity framework
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

All Articles

Sort by Score

MVC 

by Sam_IN
In this post, we will explore some important tips while working on MVC5. These tips are useful while hands on ASP.NET MVC.
by Andrew Blank
Better ways to create a .NET MVC Single Page application
by AssemblySoft
A trivial business logic layer from scratch with a TDD approach.
by Imran Abdul Ghani
Here are 2 simple ways to create Custom HTML Helper in ASP.NET MVC
by Mayur V Lohite
A helper function which verifies that an uploading file is in valid image format in MVC
by Florian Lopes
This post explains how to restrict access to an area, based on active Spring profile.
by MBigglesworth79
Using the UrlHelper class to query the routing engine and generate the correct URLs for us
by Paul D. Sheriff
In this blog post, you will learn how to add Angular to your MVC applications
by Paul D. Sheriff
In this blog post, you will learn how to add a Web API that can be called from an Angular service.
by Duy H. Thai
ASP.NET Dynamic Data lets us manage data right on the website instead of having to access the database. You can add it as an admin interface to your MVC website, but it seems there has never been an easy way to do so. I'll try to make the task easier for you if you have never done it.
by Buaziz
An easy way to add social buttons to your MVC site
by Marla Sukesh
Advantages of ViewModel in MVC (Model View Controller)
by Gerd Wagner
AngularJS does not have a Model: It's not MV*, But rather VM*
by Rion Williams
Applying conditional attributes in ASP.NET MVC Views.
by Rion Williams
How to apply conditional attributes in ASP.NET MVC views
by xszaboj
ASP MVC handle Ajax errors properly
by xszaboj
IMapper interface is injected into constructors of my classes by Unity framework, but you can use any other DI framework or inject IMapper interface manually.
by User 1043264
How to run code before and after MVC request pipeline in ASP.NET Core. Continue reading...
by User 1043264
How to reuse parts of web pages using partial views in ASP.NET Core MVC. Continue reading...
by User 1043264
How does routing work in ASP.NET Core MVC. Continue reading...
by Buaziz
Enable email notifications on errors, and create custom pages for handling errors in MVC
by Sazzad Hossain
ASP.NET MVC - Binding to dictionary
by Rajeesh.C.V
How we could write a conditional rendering HTML helper in ASP.NET MVC
by Arun Ramachandran India
How to create a ListBox in ASP.NET MVC
by TheyCallMeMrJames
The 4th post in a series on jQuery and ASP.NET MVC 2 in Visual Studio 2010. In this article, I'm going to look at three more complex examples of real-world model binding and where jQuery might fit in the mix.
by Sebastian Solnica
ASP.NET MVC Bundles internals
by John Atten
Often we need to create a table for our ASP.NET MVC web application with a checkbox next to each row, in order to allow the user to select one or more items from our list for additional processing. While the concept is not terribly challenging, it is not intuitive or obvious if you are newer to MVC.
by Imran Abdul Ghani
ASP.NET MVC HTML helpers
by Gediminas Geigalas
ASP.NET MVC localization using ActionFilter
by Rui Jarimba
Use ASP.NET MVC T4 custom templates to generate resource files and localized views
by madan535
ASP.NET MVC Performance Tips
by James Kolpack
ASP.NET MVC ViewModel Value Formatting using AutoMapper.
by Rui Jarimba
You can use Metadata Providers to add microdata to your ASP.NET MVC applications.
by John Atten
Configuring ASP.NET MVC 4 membership with a SQL CE database.
by John Atten
ASP.NET MVC: How to keep private settings out of source control
by John Atten
In this post, we are going to look specifically at the vexing situation I ran into deploying from source control with an application using Entity Framework's "Model-First" strategy.
by Sacha Barber
Attribute Routing
by Karl Stoney
In this post, I will show you how to handle automatic encryption and decryption of hidden form fields using Rijndael.
by Ben Liebert
Best practice front-end architecture using Microsoft ASP.NET MVC and Rivet.js
by Sampath Lokuge
Review of the Book "Learning JavaScriptMVC"
by Camilo Reyes
Build ASP.NET MVC from source code
by Imran Abdul Ghani
How to build your first MVC application with Entity Framework
by TheyCallMeMrJames
Built-In Authentication and Authorization Providers in ASP.NET with the MVC Framework
by Sibeesh Passion
Caching in MVC
by Shivprasad koirala
In this article we will learn can we overload mvc controller action methods.
by Buaziz
a detailed article on how to change the location of the Shared folder, also applies to the Views folder.
by Mayur V Lohite
How to check session timeout by using ActionFilters in MVC
by John Atten
In this post we will review setting up the basic Identity accounts, pointing them at an external SQL Server (or whatever other database you choose) instance instead of the default (local) SQL Server CE in App_Data, and configuring Entity Framework Migrations so seed the database with initial data.
by jotorres
CodeIgniter Template Parser Class enables you to parse pseudo-variables contained within your view files. It can parse simple variables or variable tag pairs.
by Rion Williams
Common approaches to responsive design
by Sebastian Solnica
Common Authentication/Authorization between .NET4.0 and .NET4.5 Web Applications
by Passion4Code
How to compress and zip files using DotNetZip
by Dileep Ashok
Configure Many-To-Many Relationship and ListBox control in MVC and Entity Framework
by Rion Williams
How to create advanced audit trails using ActionFilters in ASP.NET
by Gordon Beeming
How to create an asynchronous AuthorizeAttribute in MVC
by Rajneesh Kumar Verma
This article will guide you to Create, Read, Update and Delete Data using Angular JS in ASP.NET MVC 4
by Sibeesh Passion
How to create a custom deferred grid in MVC using Web API and Angular JS
by Gediminas Geigalas
Implementing a custom RoleProvider using Unity IoC library to support custom roles in ASP.NET MVC
by xszaboj
Custom validation attribute - contains
by Rui Inacio
A KnockoutJS plug-in for model and property validation that is named Knockout validation
by Md. Rashim Uddin
How to define your own dialog box
by Shivprasad koirala
In this article, I have explained the difference between ViewResult() and ActionResult() in MVC.
by Raymund Macaalay
How to make a sortable list which you can drag and pass that sorted list information back to your server.
by jgauffin
How to get clean and flexible model + validation localization in ASP.NET MVC3
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
EntityType: EntitySet ‘[Entity Name]’ is Based on Type ‘[Entity Name]’ that has no keys defined
by madan535
In this post, we will learn how to implement an Event Calendar in ASP.NET MVC and Entity Framework by using jQuery Fullcalendar plugin.
by Rion Williams
How to extend MVC controllers from external assemblies and projects
by Passion4Code
This post lists a few features of ASP.NET Core 2.0.
by madan535
In this article we can learn how to file upload in ASP.NET MVC using Dropzone JS and HTML .
by Sibeesh Passion
If you are getting some reference errors, or if your bundles are not getting configured properly in your server, here's a fix.
by Buaziz
In this article, we will define our implementation to handle Captcha images.
by Mayur V Lohite
Generic Repository Pattern MVC
by Rion Williams
This post will cover how to get yourself up and running using SignalR within Visual Studio 2010 in a jiffy.
by Buaziz
creating an MVC HTML Helper for Google Maps
by Benktesh Sharma
The caching of HTTP response implies that when an HTTP request is made, the response generated by the server is stored in some place by the browser or the server for potential re-use in successive HTTP request for the same resource.
by Mayur V Lohite
A way to create custom HTML helper in ASP.NET MVC
by Sibeesh Passion
In this post, we will see how we can create Angular JS dynamics tabs in MVC application.
by Shivprasad koirala
In this blog we will discuss how to handle multiple submit button issues in ASP.NET MVC
by levelnis
This post will show you how to quickly configure your MVC website in IIS.
by levelnis
How to quickly set up Dependency Injection with Autofac
by wullinkm
i18n globalization with gettext and ASP.NET MVC
by Ehsan Sajjad
Image ActionLink HTML helper in ASP.NET MVC
by madan535
Implement Foursquare Authentication in ASP.NET MVC
by Neeraj Kaushik1980
Implementing Jquery.tmpl (template) with KnockoutJS, ASP.NET MVC 3.
by Neeraj Kaushik1980
This article demonstrates implementation of knockoutjs observable viewmodel with jquery and ASP.NET MVC 3 and how to bind viewmodel with HTML controls.
by Arun Endapally
Implementation of single sign on in ASP.NET MVC
by Thomas Weller
Including custom client-side validations in your ASP.NET MVC app
by Thomas Weller
From the many available IoC containers out there, LinFu is the one that I like most. This is because it is extremely simple to use, needs almost no configuration at all, and yet it is highly flexible and extensible, if you need to do some more complicated things
by Thomas Weller
Integrating a LinFu IoC container with your ASP.NET MVC application
by Thomas Weller
Integration testing an ASP.NET MVC application without Web Server or browser
by Ghanshyam N Patel
This post lists a few interesting things about Web API in ASP.NET MVC.
by kishore Gaddam
This is an introduction to HTML5 development using VS2010, HTML5, jQuery Mobile and ASP.NET MVC 4
by Matthew Dennis
This is the first in a series of articles about using the Munq DI IOC Container and IOC containers in general.
by morzel
Creating Autocomplete for string property is very easy. Using it for selecting some custom type is a bit more complex but there is a way to implement it cleanly...
by Chinmoy Mohanty
How to use JSON in an ASP.NET application over a REST service using WebApi
by webdev_hb
IIS can be a bully to your poor web application and when you're in a hosted environment you have even less control. In this post we discuss how we can keep your website from being recycled and do it without needing external code!
by Scott Dorman
Kendo Grid MVC Wrapper Automatic Column Configuration
by Naveen
Explains how Leakmon is able to track down all the resource leaks
by Shivprasad koirala
Learn AngularJS Step by Step – Lab 2 (Events and Validations)
by Shivprasad koirala
Learn ASP.NET MVC step by step
by Sabarinathan A
Create a list page in 10 minutes.
by eric hexter
How to load KnockoutJS View Models from ASP.NET MVC, for faster page loads
by pollirrata
How to localize your MVC app based on a subdomain
by Sacha Barber
This time we will bring a Play Framework (scala based MVC web framework) into the fold, and shall be using the front end we have been working on so far to be the front end for the Play Framework back end.
by Sacha Barber
Prototyping the screens
by madan535
In this post, we will create a simple mail helper class for sending emails in ASP.NET MVC using C#.
by Rion Williams
How to make your .NET application less quirky
by Sander Rossel
The sixth in a series on MEAN web development.
by ashish__shukla
Model binding in MVC
by Dylan Morley
log4net Controller Action tracing using global filters.
by Hamid Mosalla
MVC 6 Attribute Routing New Features and Differences with MVC 5
by nirman b doshi
MVC attribute to restrict users to enter any kind of HTML tags in the input fields
by Rui Inacio
Validating objects through metadata is the approach of Validation with the MVC Data Annotation concept.
by Ben Liebert
MVC output caching using custom FilterAttribute
by Shivprasad koirala
This article talks about MVC Tempdata and how MVC tempdata, Peek and Keep works using example and step by step video tutorial on MVC.
by ozkary
If you are using Razor views and need to build a grid to show data, you can leverage the WebGrid  HTML helper.
by PratapReddyP
The era of global connectivity has begun. Social networking being the first step in this process, most of the latest technologies are coming up with different kinds of support for social network sites.
by Garry Pilkington
Offline Web Applications with MVC
by raju melveetilpurayil
One more example of how to do Paging in MVC
by bapak71
How to implement w2ui in ASP.NET MVC - w2ui grid
by M Sheik Uduman Ali
Partial View Auto Refresh in ASP.NET MVC3
by SRS(The Coder)
Passing Data [View-to-Controller, Controller-to-View & Controller-to-Controller in ASP.NET MVC]
by Robert Hoffmann
No IOC library, no dependencies ..and I'm really really happy now.
by Rion Williams
Wherever there is a form or page that allows a user to post up information, there is an opportunity for repeat postings and spam.
by Shivprasad koirala
In this blog we will try to understand how we can prevent and fine tune XSS(Cross Site Security) security attacks in ASP.NET MVC.
by rjzaworski
React's brought new thinking to many old problems. How far can it go?
by xszaboj
Read web.config Settings
by Sadeque Sharif
In this article, we will learn about the three methods of MVC 3 and those are RenderBody, RenderPage, and RenderSection.
by jgauffin
Repositories, Unit Of Work and ASP.NET MVC
by jgauffin
Return markdown directly from your ASP.NET MVC controller
by madan535
In this post we will learn how to send an HTML formatted email templates in ASP.NET MVC.
by morzel
Setting version of assemblies in ASP.NET MVC application with TeamCity Build Feature
by Raymund Macaalay
Here is a simple implementation of MVC cascading Ajax dropdown
by Himen M Patel
Single page CRUD application (SPA) using ASP.NET MVC, Entity Framework and AngularJS
by Gediminas Geigalas
Teleric MVC Grid ActionLink Column
by Artem Smirnov
Testing MVC with Ivonna -- first look
by Rion Williams
The circle of life... cycle of MVC applications
by Camilo Reyes
SOLID principles in ASP.NET MVC
by Shivprasad koirala
Things you will miss in MVC as a Webform developer
by jgauffin
A summary of all my answers focusing on View Models in ASP.NET MVC
by Karl Stoney
In this programming article, I will show you how to create a custom action filter for .NET MVC which will throttle repeat requests.
by chetanvihite
Understanding Filters in ASP.NET MVC
by Imran Abdul Ghani
Understanding routing in ASP.NET MVC
by Rion Williams
Understanding Routing Precedence in ASP.NET MVC and Web API
by levelnis
Article discussing how to unit test ASP.NET MVC controllers using NUnit and NSubstitute
by Passion4Code
Unobstrusive Ajax and how to handle unauthorized request in MVC
by madan535
How to save or upload Base64 data to S3 using AWS SDK in ASP.NET MVC
by Sibeesh Passion
How to upload images or any files to Media Service Account in Azure from the server side
by madan535
Use Dapper.NET ORM in ASP.NET MVC
by Raymund Macaalay
How to use Angular JS with your current MVC application
by Bob Crowley
Using HttpClient as it was intended
by Artem Smirnov
Using Ivonna and CThru for testing ASP.NET MVC views
by Matthew Dennis
In this article, I will walk through the modification of the default ASP.NET MVC 2 application to use the Munq IOC container.
by Sibeesh Passion
Using MVC grid in MVC
by Paul D. Sheriff
This blog post is the first in a series of four posts to discuss how to use a Model-View-View-Model (MVVM) approach in an MVC application.
by Paul D. Sheriff
In this post, you are going to learn to search for products. You also learn how to handle all post backs through a single method in your MVC controller. You will add code to check for no rows being returned, and display a message to the user.
by Paul D. Sheriff
In this post you add a product detail page in order to gather product data for adding to the product table.
by Paul D. Sheriff
This post is going to finish the MVC application using a MVVM approach.
by Raymund Macaalay
Using two submit buttons on MVC’s Ajax.BeginForm
by webdev_hb
This post continues the WebControls In MVC series. In this post we finally get some code that can be downloaded and tested. This post explains how to use the MvcWebForms methods to add WebControls to your Mvc Views -- and make them talk to your Controllers!
by User 271009
Using Forms Authentication to secure access to ASP.NET MVC endpoints and WCF services
by Sander Rossel
The last in a series on web development.
by Rion Williams
When MVC came along however, the water became a bit muddled and developers had a major choice to make when starting up a new project: Web Forms or MVC?
by SRS(The Coder)
What is ASP.NET MVC Routing and why is it needed
by Shivprasad koirala
CSRF (Cross site request forgery) is a method of attacking a website where the attacker imitates a.k.a forges as a trusted source and sends data to the site.
by Marla Sukesh
ViewModel in MVC
by Camilo Reyes
Writing JavaScript can be daunting. What begins with fun light scripting, quickly escalates into a tangled mess. I once found myself in an unimaginative hodgepodge of callbacks tight coupled to HTML. But then, I began to believe that there must be a better way.