Extending the asp:image control to set a maximum width

Overview Let’s say that you have an asp:image control that displays user uploaded images from a database: <asp:Image ID=”Image1″ runat=”server” ImageUrl=”me.png” /> A common request in this scenario is how to set a maximum width for this image. While you can certainly set the Width property, this scales up images smaller than the width that [...]

Read more

Overview of C# nullable types

Asp.net 2.0 introduced nullable types that allow you to determine whether a variable has been assigned a value or not and not cause an exception if the variable is null. A nullable type simply allows a variable to be null in addition to its normal range of values.

Read more

OneNote updated for iOS, now includes iPad support

OneNote 1.3 has just been released for iOS devices and is now available in the App Store. From the Microsoft Office OneNote Blog: What’s new in this version OneNote for iOS builds on previous releases with the following new features in version 1.3: Support for iPad and iPad 2 Localization into several new languages and markets Tabbed [...]

Read more

Client Side Checkbox Validation

Overview ASP.NET provides a series of validation server controls that can be used to validate data that a user inputs into your forms. These controls allow you to prevent a form from being submitted upon the rules that you define in the validation server controls. The available validation server controls are (courtesy of MSDN): Validation [...]

Read more

Apple does not need to worry about the Kindle Fire

The recently released Amazon Kindle Fire is a great 7-inch tablet that admirably serves as a low cost consumption device for Amazon content. Invariably however, reviewers are making the comparison between the Kindle Fire and the Apple iPad, despite the two devices targeting different market segments and uses.

Read more

The type [Class] is ambiguous. Please specify the assembly explicitly in the type name

The later versions of Visual Studio have put Web Application projects front and centre, and they are required for MVC development. This leads to new developers hitting some ubiquitous error messages; one of the most common I see in the ASP.NET forums is “The type [Class] is ambiguous. Please specify the assembly explicitly in the type name”

Read more

A simple Login Form

Since ASP.NET 2.0, Microsoft has included a platform for managing site membership, from user creation to authentication and authorization.

This article focuses on customizing the ASP.NET Login control to create a simple, stylish form that your users can use to log in to your web application that also provides informative errors.

Read more

The new Windows 8 Task Manager

Steven Sinofsky has today updated the Building Windows 8 Blog to share his thoughts on the new Windows 8 Task Manager, which focuses on 3 main goals: Optimize Task Manager for the most common scenarios, Use modern information design to achieve functional goals and Don’t remove functionality.

Read more