July 2008

Currently Browsing Archives For 'July 2008'

Regular Expressions in C#

by Joe on Jul 18th in C#, Regular expressions

I needed to validate a form for numeric and integer fields. The C-Sharp Corner seems to cover Regular Expressions pretty well in this article. Essentially, I created a new class named RegularExpressions and added the following: using System.Text.RegularExpressions; // Function to test for Positive Integers.public bool IsNaturalNumber(String strNumber){Regex objNotNaturalPattern=new Regex(“[^0-9]”);Regex objNaturalPattern=new Regex(“0*[1-9][0-9]*”);return !objNotNaturalPattern.IsMatch(strNumber) &&objNaturalPattern.IsMatch(strNumber);}// Function […]

IIS and .Net 2.0

by Joe on Jul 11th in .Net, aspnet_regiis.exe, ASPX, IIS

I was installing a web application today, and came across a strange problem. ASPX .Net 2.0 wouldn’t start. Luckily, a google search of “error 0x80131902” brought me to “Jonathan’s Blog“, which explained how to fix the issue. Essentially, all that was needed was the following steps (quoted from Jonathan’s article): With a command window, get […]

Database Installation

by Joe on Jul 1st in Database install, Publish Database, Server Explorer, Setup and Deployment, SQL Server, Visual Studio 2008, VS 2008

Visual Studio 2008 has this nifty tool for scripting databases. If you have an existing data connection in your Server Explorer, you can right-click on a database, select “Publish to Provider”, and voila, you have your entire database scripted to a file. Now, you may think “Hey, I can run this on another server, and […]

Powered By Wordpress Designed By Ridgey