Thoughts on .Net & Coding
.Net Articles, tutorials, reviews, code and more...
-
Select All and Delete using ASP.NET MVC and AngularJS
In my previous article I illustrated how jQuery can be used to select and delete records in an ASP.NET MVC application. A few readers asked how the same can be accomplished using AngularJS instead of jQuery. This article shows just that. Recollect how our Index view looks like and how it allows you to select all rows through the header checkbox or individual rows through the respective checkboxes.
-
Select All and Delete using ASP.NET MVC and jQuery Ajax
Sometimes you need to select records for certain action using checkboxes. For example, you may select records for deleting and then delete them from the database. Consider the following screen shot that shows such an example in action.
-
ASP.NET 5 is now ASP.NET Core 1.0
If you are tracking the progress of ASP.NET 5 you are probably aware of the recent announcement regarding the naming changes to ASP.NET 5. Here my aim is to make you familiarize with these changes so that you can understand what's coming up next.
-
Upload Files in ASP.NET MVC 6 (Form POST and jQuery Ajax)
Uploading files is a common requirement in web applications. In ASP.NET MVC 6 uploading files and saving them on the server is quite easy. To that end this article shows how to do just that. It shows how to upload files through Form POST as well as through jQuery Ajax.
-
Use Dependency Injection in ASP.NET MVC 6
There are four lifetime options for a service being injected namely Singleton, Scoped, Transient and Instance. This article presents a quick overview of all these modes.
-
Use Global Ajax Event Handler Methods in jQuery
Now a days many ASP.NET applications use jQuery Ajax in one or the other way. jQuery methods such as $.ajax(), $.get() and $.post() are commonly used in such applications. When you make multiple Ajax calls from a single page you may take advantage of the global Ajax event handler methods of jQuery. To that end this article provides a quick reference of various global Ajax configuration methods that can simplify your jQuery code.
-
Your First MVC 6 and EF 7 Application (Dependency Injection) : Part 3
In Part 1 and Part 2 of this series you developed a simple database driven application that displays a list of customers and also allows you to modify the customer details. Although the application is working as expected, it relies on the local instances of the NorthwindDbContext to get its job done. In this article we will use the Dependency Injection (DI) features of MVC 6 to inject the NorthwindDbContext into the controller class. Later we will also add repository support in the application.
-
Your First MVC 6 and EF 7 Application (Form using Tag Helpers) : Part 2
In Part 1 of this series you created and configured a basic project using ASP.NET MVC 6. Although the project runs as expected and outputs a message in the browser, it isn't database driven yet. In this part we will add database support to the project so that you can modify customer details from the Northwind database.
-
Your First MVC 6 and EF 7 Application (using Empty Project Template) : Part 1
If you are tracking the progress of ASP.NET 5, you are probably aware that Beta 8 of MVC 6 is now available. Although MVC 5.x is not going away anytime soon, it's good time to get a feel of how MVC 6 application development is going to be. To that end this article explains how a simple MVC 6 application can be developed from ground up using an Empty Project Template.
-
Quick Introduction to Immediately Invoked Function Expressions & Closures
Modern web applications heavily rely on JavaScript and JavaScript frameworks. That's why ASP.NET developers need to be aware of JavaScript concepts such as Immediately Invoked Function Expressions (IIFE) and Closures. To that end this article presents a quick introduction to these two features.