Author: ontechies
-
How To: Secure your ASP.NET MVC application and use Active Directory as the Membership Provider
Securing your ASP.NET MVC application should be priority number one every time you start a new web application. Using the attributes Authorize and ValidateAntiForgeryToken in every controller and action is the only way to avoid any security holes. In this post, I’ll show you how to secure your ASP.NET application by implementing the AuthorizeAttribute and ValidateAntiForgeryTokenAttribute classes.…
-
How to: Configure SQL Express to accept remote connections
This is a copy of the post that used to exist here for which I got some complaints since some people where still trying to read it when looking at an answer I wrote on StackOverflow a few years ago and the page was not there anymore. The above is an exact replica of the original post,…
-
Retrieving images from a dabatase in ASP.NET MVC
If you run into a ASP.NET MVC site that needs to get images stored as binary data in a SQL database you can do the following to help you read these images and display them in your view. The Controller First, create a controller that will serve these images and add a void method that…
-
Infinite scroll with ASP.NET MVC
An infinite scroll is a nice solution when you need to display large amounts of content in page, it helps by increasing performance in such a page because only a specific number of items is shown when the page first loads. As the user scrolls down, more content is shown. An infinite scroll is a better…
-
Making progress, slowly but surely
I can’t believe it’s been about a year since I started with the idea of TidyContact, time really flies, especially when you have a busy life full of projects, kids, family, etc, and I am blessed for that. So far I have learned lots of things building TidyContact, most of the things I’ve learned are…
-
Installing Windows Home Server (WHS) Connector in Windows 7 64-bit
I bought a Windows Home Server about two years ago, I use it primarily for backups and file sharing in my home network. It is a good solution for a small home network such as mine because it is sufficient, it is not overkill and it is easy to manage. A few months ago, I…
-
NuGet, The Package Management System for the .Net Platform
Update – 2019 NuGet is now part of Visual Studio and some of the information described here does not apply anymore. NuGet is a package management system for the .NET platform, it is supposed to simplify the process of incorporating third-party libraries into a .NET project during development. Basically, it is a great way to…
-
MIX11 – A tribute to Microsoft’s Web Stack of Love!
A few weeks ago I attended MIX11 in Las Vegas. MIX is an annual event where Microsoft showcase their new web technologies. This year it was all about new versions of existing products, such as Windows Phone 7, Entity Framework, Silverlight, ASP.NET MVC, IIS, etc… Below is a summary of what was shared on both…