.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Validating A Checkbox . . .

January 04, 2008 By: Dave Category: none

. . . and other ASP.NET controls that the Validation controls can not be wired to.

The presentation today may be something you already know how to do.  But, this question comes up repeatedly in my work as a .NET coach, which means there are still people who don’t know how to do this.  There are other people who think they know how to do this but are hacking the solution.  I encourage you to watch the video.  My bet is that 80% of you that do will learn something you didn’t already know about the validation controls and how to use them properly.

Here’s the basic problem.  There are controls in the .NET framework that can not be wired to the standard validation controls.  The checkbox control is one example.  You can’t use the RequiredFieldValidator because it has a value.  It’s either true or false.  And you can’t provide a RegularExpressionValidator or one of the others because it is a boolean value.

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

SQL Express Mixed Mode Authentication

January 02, 2008 By: Dave Category: none

So, I’m getting ready to do some data binding demos and I realized that when I installed Visual Studio, I forgot to install SQL Server Express first so that I could control the install.

You see, when you install Visual Studio, it installs SQL Server Express for you.  But, it installs it using Windows Authentication by default.  In fact, if you’ve installed Visual Studio already, you already know that it doesn’t even give you the option of installing for mixed mode. (more…)

How to code LINQ

December 26, 2007 By: Dave Category: none

Today we finally put all the code we’ve been looking at for the last couple of weeks into practice and take a look at LINQ.  Today’s example will be relatively brief but once you understand the underlying parts, which we’ve covered already, there really isn’t much to actually using LINQ. (more…)

Extension Methods in VB.NET

December 18, 2007 By: Dave Category: none

Last week we took a look at Extension Methods in CSharp.  Today we will continue looking at Extension methods using VB.NET syntax.  It’s obvious by comparing the syntax in VB.NET to the syntax we used in C#, that either there was a strong disagreement as to how to implement Extension Methods syntactically, or the language teams never talk to each other.

(more…)

SubVersion Instead of Visual SourceSafe

December 13, 2007 By: Dave Category: none

By now, many of you using Visual SourceSafe with Visual Studio 2008 know that VSS doesn’t work with VS2008 out of the box.  There is a fix available which the link below will lead you to.  However, you shouldn’t be using Visual SourceSafe anymore any how.  Instead, use SubVersion.  Why?

(more…)