Rebuilding imar.spaanjaars.com in ASP.NET MVC 2 - Part 2

Posted by: Imar Spaanjaars at Wednesday, March 10, 2010 10:09:19 PM in: ASP.NET MVC

UPDATE: Links to the MVC site on the URL mvc.spaanjaars.com are no longer active, now that the site is live at imar.spaanjaars.com.

Just updated mvc.spaanjaars.com with a new version.

Read on ...

Rebuilding imar.spaanjaars.com in ASP.NET MVC 2 - Part 1

Posted by: Imar Spaanjaars at Tuesday, March 09, 2010 12:44:40 PM in: ASP.NET MVC

UPDATE: Links to the MVC site on the URL mvc.spaanjaars.com are no longer active, now that the site is live at imar.spaanjaars.com.

I have finally decided to rebuild this web site - imar.spaanjaars.com in ASP.NET MVC 2.

Read on ...

Creating Custom Page Templates with Unique Code Behind Classes in Visual Web Developer Express or Visual Studio

Posted by: Imar Spaanjaars at Monday, January 18, 2010 8:22:50 PM in: ASP.NET 3.5
Visual Studio (2005 and later) has a nice feature to create your own templates that appear in the Add New Item dialog of a web site. This feature enables you to create new files, such as a Web Form, to your liking and then export it as a template so you can base new items on it.
Read on ...

Handling Disabled Links in ASP.NET 4

Posted by: Imar Spaanjaars at Wednesday, December 09, 2009 9:45:35 PM in: ASP.NET 4
In my (quite possibly very short) series on "things I discovered today in ASP.NET 4", today I am discussing disabling links in ASP.NET 4.
Read on ...

Look Ma: No Code - Using Sorted Styles in ASP.NET 4

Posted by: Imar Spaanjaars at Tuesday, December 08, 2009 8:23:08 PM in: ASP.NET 4
The cool thing about working with beta technology such as Visual Studio 2010 and ASP.NET 4 is that you discover something new every day. Today I found the Sorted Styles that enable you to define the looks of sorted columns and headers in an ASP.NET GridView control.
Read on ...

Comparing Collections of Type BusinessCollectionBase

Posted by: Imar Spaanjaars at Sunday, November 29, 2009 4:11:33 PM in: ASP.NET 3.5
A while ago (actually a long while ago but I didn't have the time to post this earlier), I was approached by Amanda Myer with a question about comparing and sorting BusinessBase objects in collections that inherit BusinessCollectionBase, discussed in my article series on N-Layer design in .NET 3.5.
Read on ...

Fixing Issues with HTML Help Workshop

Posted by: Imar Spaanjaars at Sunday, November 29, 2009 12:23:34 PM in: .NET General
I am working on an application that ships with documentation in the form of a Windows Compiled Help file. To build the help file I use Sandcastle and the excellent Sandcastle Help File Builder. Building the help file is part of a continuous integration plan so the help file is always up to date.
Read on ...

Using the ASP.NET Login Controls with Mail Servers that Require SSL

Posted by: Imar Spaanjaars at Saturday, November 28, 2009 7:54:28 PM in: ASP.NET 3.5
Some of the Login controls that ship with ASP.NET, such as CreateUserWizard, ChangePassword and PasswordRecovery enable you to send e-mail to your users without writing a lot of code. You just drag and drop a control, assign a mail body template and you're pretty much done. However, as soon as your mail server requires you to use SSL (as, for example, GMail does), things become a little trickier. In this short article I'll show the code and configuration needed to send mail to servers that require SSL.
Read on ...

Automatically Generating Class Diagrams from a Type Using Reflection

Posted by: Imar Spaanjaars at Sunday, September 20, 2009 4:17:54 PM in: .NET 3.5 General
Before I launched my web site www.dotnetattributes.com in early 2009 I generated most of the content automatically using reflection and web look ups. I extracted all the various attributes from .NET assemblies using the Managed GAC API Wrappers and I extracted a lot of class details and documentation from the MSDN site using the HttpWebRequest class. One thing I hadn't automated at first and was planning to do manually using Visual Studio was generating class diagrams. However, soon after the first full import attempt I ended up with more than 1,200 attributes so manually creating the diagrams suddenly did not seem so attractive anymore.
Read on ...

How to handle the error "The specified string is not in the form required for an e-mail address."

Posted by: Imar Spaanjaars at Saturday, July 18, 2009 1:45:19 PM in: ASP.NET 3.5
Recently I saw a number of people (a colleague and some readers of my book Beginning ASP.NET 3.5 in C# and VB) run into an ASP.NET error indicating that the "specified string is not in the form required for an e-mail address". This error is quite common and usually pops up when developers or end users are supplying a value that doesn't match the syntax rules for an e-mail address. However, in the recent cases I saw this error popped up at the moment a new MailMessage class is constructed. That means the code crashed even before it tried to assign an e-mail address to one of the To, CC, Bcc or From properties through code. So what happened?
Read on ... 12345678910