Category: MVC
-
How to perform a CRUD operation on the jQuery igGrid with the ASP.NET Web API
In this post we will learn how to perform a CRUD operation on the igGrid using the ASP.NET Web API, including: Creating the ASP.NET Web API using the Entity Framework database first approach Performing a CRUD operation on the igGrid in a jQuery application At the end of the post we should able to create…
-
Don’t Create REST APIs with WCF REST Services…use Web API Instead
There was time when developers used to create Web Service using the WCF. Their argument was using basicHttpBinding makes a WCF service as a Web Service. Yes that ASMX based web service. I never agree to this argument. Clearly WCF was an evolvement over ASMX Web Service. Now let us talk about purpose of this…
-
How to use AngularJS in ASP.NET MVC and Entity Framework
Read full article on the Infragistics blog These days, it seems like everyone is talking about AngularJS and ASP.NET MVC. So in this post we will learn how to combine the best of both worlds and use the goodness of AngularJS in ASP.NET MVC by demonstrating how to use AngularJS in an ASP.NET MVC application.…
-
Step by Step implementing Onion architecture in ASP.NET MVC Application
Source Code on the GitHub Learn Creating N-Tier Applications in C#, Part 1 by Steve Smith here – I learnt lot from this course hence sharing Recently I gave a talk on Onion Architecture in MVC application to the audience of 300 at the C-Sharpcorner conference 2015. Talk was well received and I had a…
-
How do I setup ASP.NET Identity 2.0 to use my own connection string
By default ASP.NET Identity 2.0 creates the database inside the App_Data directory of the application. ASP.NET identity 2.0 works on the Entity Framework Code First approach and it reads the connection string mentioned in the web.config as shown below, In the ApplicationDbContext class you can find that connection string named DefaultConnection has been used. You…
-
How to create a Container in Azure Storage from MVC application
I am working on a MVC application in which I need to work with Microsoft Azure storage .I had a requirement to create An Azure storage container from the MVC application. In this post I will share my learning that how I created a container programmatically. I created the view as shown in below image.…
-
Child Actions in ASP.NET MVC
Read full post on falafel blog Child Actions are the action methods which can be invoked within the view. This is used to work with the data in the view, which are not related to the main action method. For example, if you want to create a data driven widget in the view using data…
-
Check User exists in a Role in ASP.NET Identity 2.0
Read full post on Falafel blog ASP.NET MVC5 uses Identity 2.0 to manage the users and their roles. There may be scenario to check whether the currently logged in user or any user with the id exists in the given role or not, and checking can be done either in the controller class or in…
-
Start-up code using WebActivator in MVC application
Read full post on Falafel blog WebActivator allows us to execute a code long before application start-up. There may be requirements when you need to load external assemblies or instantiate a particular object before the application start up. You need to make sure some codes execute before the codes inside the App_Start folder and the…
-
Seed the database with initial Users in MVC 5
Read full article on Falafel blog In MVC 5 applications you may want to seed the database with initial users for various reasons. You may want default users and roles added as part of the application. In this post, we will take a look at how to seed the database with default users.The MVC…