Posts

Showing posts with the label MVC

Working with Azure BLOB Storage in MVC

Image
In this post you will learn following things: i) Introduction to BLOB Storage ii) Installing the Azure SDK iii) Creating MVC Application (Web Role) to upload BLOBs (for example, images) and delete BLOBs iv) Publishing to Windows Azure (Storage and Web Role)

Custom Data Annotations or Custom Validation Attributes in MVC: Video

In this video will learn how to create custom data annotation in MVC. MVC framework has great extensibility feature and because of this we can create our own customized data annotation attributes.

Globalization and Localization of Model Validation Message in MVC: Video

In this video you will learn how to globalize and localize the model validation message in MVC Applications. At the end, you will also learn how to display the localized message (greeting) on the web page.

Custom Data Annotations or Custom Validation Attributes in MVC

Image
In this post you will learn how to create custom data annotation in MVC. MVC framework has great extensibility feature and because of this we can create our own customized data annotation attributes.

Globalization and Localization of Model Validation Message in MVC

Image
In this quick post you will learn how to globalize and localize the model validation message in MVC Applications. At the end of this post, you will also learn how to display the localized message (greeting) on the page.

What are Default Model Binding and Explicit Model Binding in MVC?

Image
Model Binding is a great feature we use today with Web Forms and MVC. In this post you will learn what are Default Model Binding and Explicit Model Binding in MVC. I will use few code snippets in this post so that you can understand it quickly.

What is Eager Loading and what is Lazy Loading and what is N+1 Problem in Entity Framework

Image
In this post you will learn what Eager Loading is and what Lazy Loading is and how this works in the application, and how you can take its advantages.

View without Controller Action in MVC

Image
In this quick post you will learn how a view can be rendered without its native Controller Action method.

What is Model and ViewModel in MVC Pattern?

Image
Model and ViewModel are two things we always hear in MVC. And in this post I am going to show you the differences between them.

Windows Authentication in MVC4 with IIS Express

Image
MVC4 gone through some major changes in Windows Authentication functionality with IIS Express. In this article you will learn how to enable Windows Authentication in MVC4 Web Application on IIS Express, just follow the given steps.

I Am Now The Published Author of Instant Razor View Engine How-To

Image
I am happy to announce the release of my book ‘ Instant Razor View Engine How-To ’, published by PACKT; and now available at Amazon for purchase. Click on the image to enlarge. Amazon: http://www.amazon.com/dp/1849696306/?tag=packtpubli-20 Packt Publication: http://www.packtpub.com/razor-view-engine/book Like us on Facebook here: https://www.facebook.com/RazorViewEngine

Three ways to populate selected value in DropDownList on Edit or Update views - MVC

Image
I have been asked this question many times that ‘how to populate/activate selected value/item (which I selected while inserting/adding new record) in Edit/Update mode’. I’m going to address few possible approaches here.

Populate Selected Item in DropDownList in Edit Mode MVC

Image
Within last few days I received many questions on this title, so I decided to address this by a new blog entry. I am going to show you the best possible way to achieve this using Code First approach. Here is what we are going to achieve.

Nested Collection Models in MVC to Add Multiple Phone Numbers - Part 3

Image
This is Part 3 of the article series. Actually, in this article series we were developing an MVC application that will allow adding multiple phone numbers using Nested Model concept. User will be able to add or remove (zero or more phone numbers, I need minimum two phone numbers for each employee) phone numbers for any single employee.

Nested Collection Models in MVC to Add Multiple Phone Numbers - Part 2

Image
This is Part 2 of the article series.  Actually, in this article series we were developing an MVC application that will allow adding multiple phone numbers using Nested Model Concept. User will be able to add or remove ( zero or more phone numbers, I need minimum two phone numbers for each employee ) phone numbers for any single employee.

Nested Collection Models in MVC to Add Multiple Phone Numbers - Part 1

Image
In this article series, you will learn how to create MVC application that will allow adding multiple phone numbers using Nested Model Concept. User will be able to add or remove (zero or more phone numbers, I need minimum two phone numbers for each employee) phone numbers for any single employee.  Also in later posts, I will show you how to List, Edit, Delete record(s) in such nested (relational) models concept.  Here is the first look of the concept.

Area in MVC - giving a nice physical structure & dealing with template bug

Image
In my last blog post I talked about ‘ retrieving views from different folders in MVC ’ and it works cool when we want view pages always inside Views folder (which is on the project root) but our requirement not ends here. The new version "Area in MVC 5" is  available  here.

Retrieve Views from Different Folders in MVC

Image
In this post you will learn how to retrieve the views which is inside another folder. For example a view which is inside folder Views|Application|General|Index.cshtml. How will you map it or use it from controller? Is this possible?

Code First Approach & Database Migration & Server Side Validations & Client Side Validations in MVC4: Video in Hindi

Image
In this video you will learn how to create simple Feedback Submission Form. In the journey, I will explain the use of Code First Approach and Code First Database Migrations and also Sever Side Validations and Client Side Validations to validation the data entered by the user.

Client Side Username Availability Checking in MVC

Image
It is often required live ‘username’ checking on user registration page in web applications. Today I developed this for my one of the web application and would like to share that with you.

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples