shepherdweb.com

Archive for the 'Languages' Category

ASP.NET MVC Presentation Notes

Wednesday, February 20th, 2008

This post contains notes, links and a .zip of the project I built in my presentation to the Lubbock .NET Users Group. Requirements for this project include the following:

ASP.NET 3.5 Framework
ASP.NET 3.5 Extensions CTP
ASP.NET MVC Toolkit
Visual Studio 2008

Sites with Tutorial, Tips, Help, etc..

Scott Guthrie Intro and Tutorials:

Intro
Part 1
Part 2: URL Routing
Part 3: Passing ViewData [...]

Bug Report

Monday, August 20th, 2007

The test case I published back in April, overflow: auto Allows Focus in Firefox, has been published on PPK’s Bug Report Blog. The Bug Report is a list of CSS and Javascript bugs including test cases and workarounds. Anyone can report a bug they’ve found, all that’s required is that you provide a [...]

Javascript Fitness

Thursday, June 7th, 2007

Since January I’ve struggled with the drive to eat healthier and exercise. My wife and I took up tennis lessons in April, and it was immediately apparent that the running required to survive a lesson was almost beyond me. A good friend recommended the Couch-to-5K Running Plan. I thought this was a [...]

Undefined index: action in /cake/dispatcher.php line 144

Monday, April 2nd, 2007

It took me almost an hour to figure out what was causing this error.
Undefined index: action in /cake/dispatcher.php line 144

The problem turned out to be that one of the values in $property["Listing"] was returning a value which included a space. Something like this: “396 “. Since the requestAction method uses a URL to [...]

Select Element Z-index Ignored by IE 6 - Workaround

Wednesday, February 14th, 2007

IE 6 will continue to be a problem for web developers for a while longer. Statistics for this site show that even though IE 7 has been out for several months, 30% of my visitors still use IE6. IE 7 is climbing fast (currently at 22%), but still has a ways to go [...]

How to Point CompareValidator’s ControlToCompare Attribute at a HiddenField

Tuesday, January 30th, 2007

If you point the ControlToCompare attribute of the CompareValidator at a HiddenField you’ll get an error that looks something like this:
Control ‘hiddenBalance’ referenced by the ControlToCompare property of ‘CompareValidator1′ cannot be validated.

With a small amount of “googling” I found two useful articles:

Validating against the value in a hidden input
MS KB Article 310082

Between these two article [...]

ASP.NET Membership Provider Gotcha!

Friday, January 12th, 2007

It turns out that MembershipUser.UserName is a read only property, there is no Set { } method in the Membership Provider, only Get { }. If you try to use Membership.UpdateUser() to change an existing username, you will get the following error:

CS0200: Property or indexer ‘System.Web.Security.MembershipUser.UserName’ cannot be assigned to — it is read [...]

Bad Behavior has blocked 689 access attempts in the last 7 days.