Categories
ASP.NET C# VB.NET

String.Format to set a constant in .NET

Today I began working on the base framework for a new project. In the past we would just copy an existing project and remove what we don’t need, so I thought this would be a good time to make the framework more generic to speed up this part of the process for future projects. This […]

Categories
ASP.NET C# VB.NET Visual Studio

Here are some useful collection types commonly used in .NET

This is a question that was asked during an interview and I didn’t know the correct answer, so I thought I would add the information I found to “My Online Notepad“. Maybe it can also help someone else. Hash Tables – A collection of key/value pairs that are organized based on the hash code of […]

Categories
C# VB.NET Visual Studio XML

XML documentation parse error (warning in Visual Studio)

I was working with a VB.NET project today and noticed the following warning: XML documentation parse error: Whitespace is not allowed at this location. XML comment will be ignored. After a quick search on the web I found the problem was using the ‘&’ character which is a reserved character for XML documentation. So my […]

Categories
ASP.NET VB.NET Visual Studio

.NET 2.0 – Event validation fails when postback occurs before a page is rendered completely

http://support.microsoft.com/kb/969548 Solution: Upgrade the system to the .NET Framework 2.0 SP2 or the .NET Framework 3.5 SP1. Other information related to this issue.

Categories
ASP.NET VB.NET Visual Studio

Sending Appointments to an Outlook 2007 Calendar from an ASP.NET 2.0 Web Site

Good article that uses VS 2005 to create an ASP.NET 2.0 web site that can create and send an calendar appointment to add to an Outlook 2007 calendar. Examples in both VB.NET and C# http://msdn.microsoft.com/en-us/library/bb655909.aspx

Categories
ASP.NET VB.NET

Error while trying to run project: Unable to start debugging on the web server

Open your Internet Information Services manager and from the [your machine]/Web Sites/ Default Web Site node select the virtual folder which stores your project. Right Click and select Properties to select the ASP.NET tab page. Make sure the correct version ASP.NET Version is selected. I have VS.NET 2003 and 2005 beta 1 running side-by-side on […]

Categories
ASP.NET C# JavaScript VB.NET

Inline IF’ Statement

C# string s; s = (true ? “True” : “False”); //s will be “True” VB.NET Dim s As String s = If(True, “True”, “False”) ‘s will be “True” ‘In the following you cannot rely on a particular function ‘not being called if the other argument is selected by Expression ‘(notice IIf vs. If) s = […]