shepherdweb.com

Archive for the 'Languages' Category

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 [...]

Installing .NET 3.0 Framework on Windows XP SP2

Friday, December 29th, 2006

Why would you want to do this? I’m not sureyet, but as an ASP.NET developer, I know I’m probably going to need to understand how to use it.
The .NET Framework 3.0 adds new technologies to the .NET Framework 2.0, which makes the .NET Framework 3.0 a superset of the .NET Framework 2.0. You [...]

ASP.NET AJAX Control Toolkit AnimationExtender Using a Condition

Tuesday, December 12th, 2006

The ASP.NET AJAX Control Toolkit includes a control called the AnimationExtender which provides a framework for adding animation effects to web pages. One ability of the AnimationExtender is to execute code based on a condition using the Condition Animation rules. Condition Animation will “play” specific child animations based on the boolean result of [...]

Handling Google Maps API Keys with ASP.NET MasterPages and Web.config

Friday, December 8th, 2006

The Google Maps API requires you to generate a key that is tied to the URL where the map will be deployed. This can be inconvenient if the site exists in multiple places at the same time…as is the case in many development scenarios:

Develop
Test
Deploy

These three stages can also represent physical locations. Development is [...]

Adding an OnClick Event to a RadioButtonList ListItem

Wednesday, November 22nd, 2006

The ASP.NET RadioButtonList does not provide a declarative way to attach the onclick attribute to a ListItem. However, it can be done using the OnDataBound event handler. This is useful in a scenario where you have a TextBox that you would like to populate with the user’s RadioButtonList SelectedValue. In this example, [...]

Safari and Firefox Support Improved in ASP.NET AJAX Beta2

Thursday, November 9th, 2006

Beta2 release of ASP.NET AJAX (formerly known as “Atlas”) was released on Monday. Scott Guthrie has an overview of the highlights of this release. Notable among them is added support for drag and drop ASP.NET 2.0 web parts in Safari and Firefox. David Barkol explains how to add this support to existing [...]

Error While Installing Microsoft SQL Server 2005 on Windows XP

Tuesday, November 7th, 2006

I’m setting up a new PC with all the tools a Web Developer might need. While installing Microsoft SQL Server 2005, I encountered the following error during setup:
SQL Server Setup failed to obtain system account information for the ASPNET account. To proceed, reinstall the .NET Framework, and then run SQL Server Setup again.
This is [...]

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