Asp.net

Building Custom Formatters for .Net Core (Yaml Formatters)

Quite recently I got myself introduced to .net core’s formatters. In short, what formatters do is format your response and request in your preferred data formats. For example, Json formatters, if used would format your response (returned value from controller's action) and request (value passed as a parameter to the controller) in Json. Same goes for the XML and other formatters. .Net Core gives you some formatters out of the box. This official documentation link described them briefly https://docs.microsoft.com/en-us/aspnet/core/mvc/models/formatting But…

Keep reading

Dependency Injection to The Core (Part - III)

We came to know about the term IoC container. There are many IoC containers available and most of them do the same things somewhat differently. Let’s use one of them in our current project. Let’s pick Autofac which has a great documentation online. Here is the link where you can know all about the Autofac integration related stuff with Web API projects, http://autofac.readthedocs.io/en/latest/integration/webapi.html Since we are just beginners wondering around the world of dependency injection. We will go slow and…

Keep reading

Dependency Injection to The Core (Part - I)

Okay since I’m writing blogs mostly on asp.net core lately, you might be wondering that why am I writing a blog on a topic which is already available in asp.net core official documentation. Well, in this post I’m not only going to talk about how you can achieve DI (Dependency Injection) in .net core but will also discuss about DI itself (what, why and how). This article reflects how I actually learned (still learning) DI. So, if you don’t want to follow my approach or…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – III)

Creating the ASP.net Core 1.0 MVC project Okay, this part of the series will be pretty much big. So take time and read all the stuffs that I’ve done here. We will create a ASP.net Core 1.0 MVC project first. If you don’t have it installed already, please visit this link and follow the instructions to install it in your favorite operating system, https://docs.asp.net/en/latest/getting-started/index.html After installing, open up your Visual Studio 2015 and create a new…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – II)

Adding about and howto controllers Welcome to the part two of AngularJs and ASP.net Core 1.0 JumpStart! In part one we configured routing for our app and also attached views to those routes. We will implement the game logics in this post. To handle client side business logics, we will implement three angular controllers respective to the three views we have. Let’s implement the controllers for the howto and about views first since they are pretty much easier. In your app folder under js add two new…

Keep reading

AngularJS and ASP.net Core 1.0 JumpStart (Part – I)

Building the “Answer It!” app “Answer It!” is an app more like the famous TV show “Who wants to be a millionaire” but a bit different. Here a user will be presented with some predefined question sets. User will have to answer all the questions in limited amount of time and grab the glorious prize of “NOTHING”. I’ll build the app from scratch following some patterns and practices in both server and client side. In the end of this series you will have a good understanding on how to…

Keep reading

ASP.NET Session State Management with Redis (Local Server Farm Testing)

What is Redis? Redis is an open source key value data structure store. keys can be strings, hashes, lists, sets, sorted sets etc. This in memory data store is broadly used in session state storing and caching. Why Redis for session state storing? If you are developing web applications for big companies, possibilities are your application is hosted on multiple servers. To be frank that is actually true. In some cases, for example, you may want to provide a backup server if your main server fails. In other cases, for…

Keep reading

Building web apps with ASP.net 5 MVC and Entity Framework 7

Intro to ASP.Net 5  Everyone likes the technology that comes with an “open source” tag along with it. And yes! The new ASP.net 5 is an open source project and cross platform framework. I guess, you are already feeling excited to learn some ASP.net 5 now! Well I’m a big fan of Node.js, so when I heard about ASP.net 5 and its modularity like Node.js, I thought why not give it a try. Believe me guys! I’m…

Keep reading

Up and Running with ASP.NET vNext

Introduction For so long now, you have been working on OSX and UNIX, but want to taste some Microsoft’s cutting edged technologies. By which I mean you want to end up writing some code in C#. Now the burning question is, how am I going to even write C# code without Visual Studio? And moreover, my OS doesn’t support running Microsoft’s products. Well! You don’t have to whine anymore because I’ve got good news for you. If you attended the…

Keep reading