Strongly Typed Data in ASP .NET Web Forms

In ASP .NET Web Forms you’ve previously had to use strings to specify which properties you’d like to output when databinding, which would probably end up looking something like the following. In all likelihood it could probably look far less tidy if you’ve ever needed to do any formatting on values you’re about to outputContinue reading Strongly Typed Data in ASP .NET Web Forms

Install WPScan on Ubuntu 13.10

Prerequisites Since Ubuntu 13.10 doesn’t come set up for development work out of the box there are a few things you need to download and install first. Thankfully this is made easy by apt-get by just running the following command to get everything ready. sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential gitContinue reading Install WPScan on Ubuntu 13.10

Send E-mail through Microsoft Exchange using .NET

Recently I needed to send an e-mail using Microsoft Exchange Server from an ASP .NET Web App. My first attempt involved using the classes in the System.Net.Mail namespace however I quickly realised this wasn’t the way to be going about it as I had very little luck getting a connection to the server. After a whileContinue reading Send E-mail through Microsoft Exchange using .NET

Using a RequiredFieldValidator on a DropDownList in ASP .NET

In most applications today drop-down lists default to a “Please select..” option with some form of validation to ensure the user makes their own selection. In ASP .NET web forms this frequently results in a drop-down list being created using code similar to that displayed below. We can add an ASP .NET RequiredFieldValidator and setContinue reading Using a RequiredFieldValidator on a DropDownList in ASP .NET

How to allow HTML content in ASP .NET MVC

Sometimes in web development, you need to provide an easy-to-use editor for non-technical users to input or change content where extra styling is required such as making text bold or italic. However unless you use (or code yourself) an editor which uses some form of BBCode you’re going to come across the following error message if you’re usingContinue reading How to allow HTML content in ASP .NET MVC

ASP .NET AJAX Control Toolkit Reorder List control and LINQ

The ASP .NET AJAX Toolkit is quite a useful and yet under-used set of controls. However they can also quickly lead to bizarre issues and worse performance than normal if they are not properly understood or used correctly. This issue is compounded when you take into consideration that quite a few of the controls included have a number of fairlyContinue reading ASP .NET AJAX Control Toolkit Reorder List control and LINQ