Thoughts on .Net & Coding
.Net Articles, tutorials, reviews, code and more...
-
Updated : Use Dependency Injection in ASP.NET Core 1.0
There are three lifetime options for a service being injected namely Singleton, Scoped and Transient. This article presents a quick overview of all these modes.
-
Top 10 Features of ASP.NET Core for ASP.NET MVC Developers
ASP.NET Core 1.0 (formerly ASP.NET 5) provides a revamped Web development framework geared towards the requirements of modern Web applications. The new framework, currently in RC1, requires you to learn many new concepts not found in ASP.NET MVC 5. To that end, this article enumerates a few important features that ASP.NET MVC 5 developers should know as they prepare to learn this new framework.
-
Updated : Upload Files in ASP.NET Core 1.0 (Form POST and jQuery Ajax)
Uploading files is a common requirement in web applications. In ASP.NET Core 1.0 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.
-
Install ASP.NET Core RC2 and Create "Hello ASP.NET Core" Application
If you are tracking the progress of ASP.NET Core 1.0 (formerly ASP.NET 5) you are probably aware that Microsoft has announced the availability of RC2. You can read detailed announcement here. This article aims at providing detailed instructions about installing the RC2 bits. Moreover, it quickly walks you through creating "Hello ASP.NET Core" web application.
-
ASP.NET MVC with jQuery and AngularJS Ajax Training in Thane
Next batches of ASP.NET MVC with jQuery and AngularJS Ajax course are scheduled in the month of July 2016. Learn MVC 5, Entity Framework 6, Web API 2, jQuery Ajax, AngularJS SPA and more. Small batches, personal attention and real world examples. Registration has already started. In case you or your friends are interested to join please get in touch with us as soon as possible. The courses are conducted on Sundays in Thane. You may read more details here.
-
Dealing with varying number of route segments in ASP.NET MVC
Most of the times the ASP.NET MVC routes consists of known number of segments. This works well for many applications. However, at times you may not have idea about the exact number of route segments involved. This article shows how to configure and use catch-all route that deals with such a situation.
-
Utilize Server Sent Events in ASP.NET MVC
Some web applications application need to show data in real-time. As soon as the data is made available at the server, it immediately needs to be displayed to the end user. Traditionally developers used to poll the server periodically to check if a new data is available. Wouldn't it be nice if server notifies the client of new data rather than client checking with the server periodically? That is what Server Sent Events (SSE) allow you to do.
-
Use Session in ASP.NET Core 1.0
ASP.NET developers often use Session object to store session wide data. Storing and retrieving values in the Session object is quite straightforward in ASP.NET web forms and ASP.NET MVC. However, ASP.NET Core deal with the session data in a different way. This article introduces you to the foundations of session data management in ASP.NET Core.
-
AngularJS Directive That Invokes ASP.NET MVC Action
Recently one of the readers asked whether an AngularJS directive can invoke ASP.NET MVC actions. This article shows how a simple AngularJS directive can be created that invokes an ASP.NET MVC action using Ajax. Usually an AngularJS directive is used to perform some UI centric operation. However, nothing prevents an AngularJS directive from invoking some server side code (say an action method) to get some job done.
-
Use Lazy Initialization to Delay Object Instantiation
It is a common practice to declare object variables as the class members and initialize them in the constructor of the class. At times, however, you need to delay the object instantiation until its first use. One way to achieve such an deferred object instantiation is to write custom code that implements Lazy Load pattern. An easy alternative is to use .NET framework's inbuilt lazy initialization feature. To that end this article explains the later approach.