Posts

Showing posts with the label MVC

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.

Logging Errors with ELMAH (Error Logging Modules And Handlers) in MVC 4

Image
ELMAH is an alternative to HMS (Health Monitoring System) for logging errors which is free and available under open-source which is created and managed by Atif Aziz . HMS was ( was...why? ) great ( with few pains ) because it has option to capture all events as well as errors. With HMS developers has to design the UI for viewing the log information but with ELMAH, you just need to hit a URL to view log information.

Removing or Customizing View Engines in MVC

Image
In this article you will learn how to remove or customize View Engines which is not being used by application.

Enable Password Resetting with Simple Membership in MVC 4

Image
In this article you will learn how to enable password resetting (in case user forgot the password) with Simple Membership in MVC. User needs to type his username and system will check its existence, if found correct this will send an email containing dynamically generated URL with username and password reset token.

Output Caching in MVC

Image
In this article you will learn everything about ‘Output Caching in MVC’. I will take you by showing some real examples to make your view crystal clear.

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