In this blog post, we will integrate ASP.NET MVC with Azure BLOB Storage by saving an image for an ASP.NET Identity 2.0 user in Azure BLOB Storage. We’re going to cover a lot of ground in this post, including: Using ASP.NET Identity 2.0 user as reference in other table. Creating a one to many relationshipContinueContinue reading “Creating a photo album for ASP.NET MVC 5 Users using Azure BLOB storage”
Author Archives: Dhananjay Kumar
Creating Unit Tests for ASP.NET MVC Controllers
In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. Specifically, we’ll cover writing Unit Tests for: ViewData of the Controller TempData of the Controller ViewBag of the Controller View of the Controller Let’s get started! Creating the MVCContinueContinue reading “Creating Unit Tests for ASP.NET MVC Controllers”
How I did in 2015?
I procrastinate, hence this blog post is 12 days late. Nevertheless, I wish Happy New Year to each one of you. May you get best of the life in 2016. Many of us don’t like to read long stories and enjoy reading data in all possible ways. For data lovers here is the summary inContinueContinue reading “How I did in 2015?”
Getting started with Azure API Apps and Azure MVC web App in Azure App Service
In this article, you will learn how to create Azure API Apps and an MVC client deployed in Azure We App. This is going to be a very simple application connecting various components of Azure App services, and to build it we’re going to use Azure API App, Azure Web App, and SQL Server inContinueContinue reading “Getting started with Azure API Apps and Azure MVC web App in Azure App Service”
How to Create a YouTube AngularJS Directive
I have often seen, developers come across requirement to embed a YouTube video in an AngularJS application. In this post, we will learn to create a simple YouTube AngularJS directive and also to use some of the popular directive from the GitHub. We will follow step by step approach to create the YouTube custom directive.ContinueContinue reading “How to Create a YouTube AngularJS Directive”
How to work with Enums in ASP.NET MVC
Recently I got a question from one of the readers that how to work with Enums in ASP.NET MVC? Before we move ahead in this post, let me tell you that it is very simple to work with Enums in ASP.NET MVC 5.1 and later. In MVC 5.1, HTML helper class EnumDropDownListFor has been introducedContinueContinue reading “How to work with Enums in ASP.NET MVC”
Video -How to create object in JavaScript using the new operator – #JavaScriptin5minutes
In this video you will learn to create JavaScript object using the new operator
Areas in ASP.NET MVC
Areas are some of the most important components of ASP.NET MVC projects. The main use of Areas are to physically partition web project in separate units. If you look into an ASP.NET MVC project, logical components like Model, Controller, and the View are kept physically in different folders, and ASP.NET MVC uses naming conventions toContinueContinue reading “Areas in ASP.NET MVC”
How to create Custom Filters in AngularJS
Have you ever used filters with the ng-repeat directive as shown in the listing below? If so, then you’ve used a filter in an AngularJS application. AngularJS provides us many in-built directives like search. If required, AngularJS also allows us to create custom filters, which we’ll explore in this post. AngularJS gives us a simpleContinueContinue reading “How to create Custom Filters in AngularJS”
What are ViewData, ViewBag, and TempData in ASP.NET MVC?
I have often seen entry level developers struggle with the differences between and usage of ViewData, ViewBag and TempData in ASP.NET MVC. And while there are many articles and blog posts on this topic out there, I’ll try to explain it simply. To start with, ViewData, ViewBag, and TempData all three are objects in ASP.NETContinueContinue reading “What are ViewData, ViewBag, and TempData in ASP.NET MVC?”