How to create and access session variables in ASP.NET 5

Posted by Anuraj on Tuesday, July 7, 2015

.Net ASP.Net ASP.Net MVC

ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. Sessions values can be stored for the duration of the visitor’s session on your site. Most cases, they are stored in server memory. You can configure session to store either in State server or in SQL Server. In ASP.NET MVC, you can create and access session variables using HttpContext.Current.Session. In ASP.NET 5, ASP.NET team implemented a middleware to support session management.

File upload in ASP.NET Core

Posted by Anuraj on Monday, July 6, 2015


In ASP.NET 5 MVC 6 Microsoft changed the File upload feature. Now MVC 6 support model binding of multipart form data, which means, you can include file as the property of your model.

Continuous Integration with ASP.NET 5, GitHub and Travis CI - Part 2

Posted by Anuraj on Sunday, July 5, 2015

.Net ASP.Net ASP.Net MVC Version Control

Few days back I did a post on Continuous Integration with ASP.NET 5, GitHub and Travis CI. In that post I was using K runtime and K commands. From ASP.NET 5 Beta 4, Microsoft changed the runtime to DNX, the K runtime became obsolete. This post is about continuous integration using DNX runtime. Only minor changes are required. Here is the .travis.yml file.

How to unit test async controllers in ASP.NET 5

Posted by Anuraj on Saturday, July 4, 2015

.Net ASP.Net ASP.Net MVC Unit Testing Visual Studio

In .NET 4.5 Microsoft introduced Async methods, which helps developers write asynchronous code similar to normal code. Instead of returning ActionResult async method returns Task

Getting started with ASP.NET 5 configuration

Posted by Anuraj on Friday, June 26, 2015

.Net ASP.Net ASP.Net MVC HTML5 Visual Studio Windows Azure

When ASP.NET introduced, unlike conventional web.config, it was project.json. When I started exploring ASP.NET code, I couldn’t find the System.Configuration namespace as well. This post is about reading configuration in ASP.NET from project.json file. ASP.NET 5’s configuration system has been re-architected from previous versions of ASP.NET. The new configuration model provides streamlined access to key/value based settings that can be retrieved from a variety of sources.

Excecute SSIS package (DTSX) from C#

Posted by Anuraj on Wednesday, June 24, 2015

.Net .Net 4.0 ASP.Net ASP.Net MVC SQL Server Visual Studio

SQL Server Integration Services (SSIS) is a component of the Microsoft SQL Server database software that can be used to perform a broad range of data migration tasks. SSIS is a platform for data integration and workflow applications.

Working with SASS in ASP.NET

Posted by Anuraj on Wednesday, June 10, 2015

.Net .Net 4.0 ASP.Net ASP.Net MVC HTML5 Javascript Visual Studio

Recently someone introduced me SASS (Syntactically Awesome Style Sheets). This post is about using SASS in ASP.NET MVC with Visual Studio and using Visual Studio code. When you’re using a CSS pre-processor (SASS is a CSS pre-processor like LESS) to write your stylesheets, you need to compile those files at some point of time. You can use three approaches for compiling.

Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub