Category: MVC

These MVC tutorials will help you learn the basics of MVC and the most common scenarios in MVC application development.

Upload File in MVC using Ajax

Most of the applications today works with files such as word documents or pdfs.So one of the common requirements in most applications is uploading files.In the case of windows applications uploading files could be very fast as the user is working...

EnumDropDownListFor helper method in MVC 5.1

ASP.NET MVC 5.1 which is an update to the version 5.0 of MVC includes some new useful features.One such feature is Enum support in Views. In the previous versions of MVC we have to use some some workarounds when displaying...

Populate Dropdown from Database in MVC

A commonly required functionality is populating dropdown with values fetched from the database.Many times data is contained in a database table from where it needs to be fetched and displayed in a dropdown in the UI. Unlike other html controls a dropdown has...

Populate dropdown with Enum in MVC

In the previous article we looked at how to populate dropdownlist in MVC Enum type in C# is used to declare set of named constants.Named constants are required in any application.For example we can have different priorities such as trivial,critical...

Populate dropdownlist in mvc

When developing views in MVC we use html helper methods for creating different user interface elements such as the textbox and radio buttons.There are different html helper methods for creating UI elements.Most of these html helper methods have two versions strongly typed which...

Posting json data using jquery ajax in MVC

JSON is a data exchange format which is commonly used to exchange the data between the web server and the web browser.In Fetching json data using jquery ajax in MVC  we looked at how to fetch data using JSON from...

Fetching json data using jquery ajax in MVC

JSON is a data exchange format used for sending the information between the web browser and the web server.Today AJAX is a commonly used in most of the web sites.AJAX can improve the performance of the page and is useful...

OpenID protocol

The number of applications which an average person uses has increased drastically over the years.An average user may have an official and personal email-id’s, Facebook  id and lot many.Having so many different id’s has the implication of remembering too many...

Authentication and Authorization in MVC

Security is an important part of any web application. An important component of security are the Authentication and the Authorization process.Authentication is the process of verifying the identity of a user while authorization determines which parts of the application the user...

Razor View Engine

ViewEngines in MVC are responsible for generating the HTML from the view ,it does this by locating the view and rendering it.Views in MVC are templates which contains code and markup. ViewEngines search for the views in specific locations.This is...