February 2018 : Instructor-led Online Course in ASP.NET Core 2.0. Conducted by Bipin Joshi. Read more...
Online Courses in ASP.NET MVC, ASP.NET Core, and ASP.NET Design Patterns
Learn ASP.NET MVC, ASP.NET Core and ASP.NET Design Patterns from the comfort of your home. Online courses conducted by Bipin Joshi. Small batches, real world examples, convenient weekend timings. Read more details here.

Latest Articles

Use Razor Pages, MVC, and Web API in a Single ASP.NET Core Application
If you are worked with ASP.NET Core 2.0 before you are probably aware that Visual Studio 2017 offers three basic project templates for creating ASP.NET Core 2.0 projects. They are Web Application (Razor Pages), Web Application (MVC), and Web API (see below). Interestingly Web Application project defaults to Razor Pages. It is important for the beginners to be aware that although these are three different project templates, you can have all these development options - Razor Pages, MVC, and Web API - inside a single ASP.NET Core web application.
Posted On : 15 Jan 2018
Handling Multiple Submit Buttons in Razor Pages
Razor Pages in ASP.NET Core allow you to build page focused web applications using simple page based programming model. If you worked with Razor Pages before you are probably aware that by default you can handle requests using methods such as OnGet(), OnPost(), OnPut(), and OnDelete(). This means a form POSTed to the server needs to be handled using only one action - OnPost(). At times, however, you need to have multiple actions to deal with the same HTTP verb. A common scenario is when you have multiple submit buttons on a form.
Posted On : 08 Jan 2018
Use Cookies and Session To Store TempData In ASP.NET Core
If you ever used TempData in ASP.NET MVC, you are probably aware that by default TempData is stored in Session state. This means the web application must have sessions enabled. Luckily, ASP.NET Core 2.0 provides two TempData providers - Cookie based and Session State based. To that end this article shows how to use both of them in an ASP.NET Core application.
Posted On : 01 Jan 2018
Support Multiple Versions of ASP.NET Core Web API
Now a days REST APIs are quite commonly used in web applications. At times you may need to provide multiple versions of your API to the clients. This could be because of enhanced functionality exposed by the API or it could for the sake of offering multiple sets of functionality (basic, advanced, free, paid etc.). This article discusses a few approaches for offering such multiple versions of your API to the client applications.
Posted On : 18 Dec 2017
Use BindProperty Attribute for Model Binding to Properties
Model binding allows you map request parameters to actions. This means action methods will have one or more parameters and those parameters will receive their values from the model binding framework. Model binding can be performed to simple types as well as complex types. In ASP.NET Core 2.0 you can perform model binding to properties in addition to action parameters. This article explains how.
Posted On : 04 Dec 2017
Seed Users and Roles Data in ASP.NET Core Identity
ASP.NET Core identity allows you to implement authentication and authorization for your web applications. While working with ASP.NET Core Identity at times you need to create default user accounts and roles in the system. In ASP.NET MVC you could have easily done this in Global.asax and Application_Start event handler. In ASP.NET Core the process is bit different since the application startup process is different. To that end this article explains a way to seed such user and roles data in your applications.
Posted On : 27 Nov 2017
Drag-n-Drop File Upload in ASP.NET Core
In one of my earlier articles I discussed how to upload files using full page post-back as well as Ajax post-back. Usually developers use the file input field to select one or more files to be uploaded from the client machine. However, you can also HTML5 drag-n-drop to make it easy for the end user to pick files directly from Windows explorer. To that end this article shows how to implement just that.
Posted On : 20 Nov 2017
Convert XML data to JSON and return it from Web API
Recently I stumbled upon a situation where a large number of XML documents needed to be returned from ASP.NET Web API. This sounds like a straightforward task but there was a small twist to the story. The XML documents existed as physical disk files. The Web API should read these files and convert the XML data into JSON. This was needed because the client applications were designed to handle only JSON format. Here I discuss a quick way to accomplish this task.
Posted On : 13 Nov 2017
Accept / Reject File Upload Depending Upon XML Schema Validation
Recently I came across such an application where the end users are required to upload XML files from their machine onto the server. Uploading the file is a quite straightforward thing but in this case it was also required to validate these uploaded files against an XML schema (XSD).
Posted On : 07 Nov 2017
Integrate reCaptcha V2 in ASP.NET Applications (Web Forms / MVC / Core)
If you are running any website that makes use of Google's reCAPTCHA for keeping bots and automated scripts away, you are probably aware that version 1.0 is being phased out. That means you need to integrate version 2.0 into your websites. To that end this article explains how to do just that. I use ASP.NET MVC project to illustrate the integration process but the same applies even for ASP.NET Web Forms and ASP.NET Core applications.
Posted On : 30 Oct 2017

Tag Cloud

.NET Framework Administration ADO.NET AJAX AngularJS Architecture ASP.NET ASP.NET Core C# Components Configuration Custom Controls Data Access Data Controls Deployment HTML5 JavaScript jQuery LINQ Multithreading MVC Performance Programming Languages Projects Reviews Sample Applications Security Server Controls SQL Server User Controls Utilities VB.NET Visual Studio WCF Web Forms Web Services Windows Windows Forms XML