Have GridView Highlight Last Inserted Record in ASP.NET 2.0
Thursday 7 December 2006 @ 4:41 pm
A question that frequently comes up in the asp.net forums is how to have a gridview show the the last record added highlighted. This articles gives a technique for doing this. It only works with SqlServer but could could be modified for other databases.

more...



Improved Fast Access to Small Lists On ASPX Pages
Friday 27 October 2006 @ 12:34 pm
The article below has a minor improvement to the previous article listed on this web site. Specifically, the previous article used the DropDownList as a mechanism to actually retrieve the data for the purposes of storing it in a local Dictionary. This article simply calls the ObjectDataSource directly to retrieve an IEnumerable type and iterates over that. Below is article with the updates. (Original Article is: http://peterkellner.net/2006/08/30/smalllistaccess/)

more...



How To Show All Items Using a DropDownList and a GridView Control in ASP.NET 2.0 with VS2005
Saturday 14 October 2006 @ 11:35 am
This article will show how to implement a showall item in a DropDownList using GridView with ASP.NET 2.0. It does it by dynamically changing the SelectParameters associated with a SqlDataSource.

more...



Integrating PBWiki with .Net Using the New PBWiki API, The Start of a .Net API
Monday 18 September 2006 @ 12:04 pm
In this article we will demonstrate a technique used to automatically add Wiki Pages to PBWiki using the not quite released API provided by the peanut butter guys. The demonstration will involve integrating scheduled presentations at our Silicon Valley Code Camp on October 7th and 8th each with its own Wiki Page. Without the API, creating and linking the presentation to a Wiki page would have to be an ugly manual process involving the dreaded cut and pasting of URL’s.

more...



Get SqlDataSource To Retrieve DefaultValue of Current User (ExpressionBuilder with ASP.NET 2.0)
Monday 18 September 2006 @ 9:50 am

This article shows how to use Expression Builders in ASP.NET 2.0 to retrieve the current logged in user. DataBinding will not work so Expression Builders is the ticket. A small source file is created, the refernces to web.config are shown and a simple example is built.

more...



Rendering Images With IIS Verses an ASP.NET 2.0 Handler
Monday 4 September 2006 @ 10:38 pm
This article will compare the difference between rendering images using an HttpHandler and IIS. It will show the different request processing times for a small, medium and large bmp file. It also discusses using the DefaultHttpHandler.

more...



Fourth MSDN Article Published! “Adding Personalization with Profiles to the ObjectDataSource”
Monday 4 September 2006 @ 11:55 am
This article explains how the encapsulation of Membership can be extended to include Profile (personalization) information for users. The designers of Membership included a very basic set of attributes to associate with Members (logged in users).

more...



Fast Access to Small Lists On ASPX Pages in ASP.NET 2.0
Wednesday 30 August 2006 @ 7:13 am
How to reference small lists of data on an aspx page in asp.net 2.0. The proposed solution here demonstrates a technique taking advantage of the ObjectDataSource’s Cache, DropDownLists and Data Dictionaries. (not to mention a little databinding)

more...



Zero to Professional Web Site in Two Days
Using Microsoft’s Visual Studio Design Templates
Monday 28 August 2006 @ 6:19 pm

It’s Monday, August 21st, we have our CodeCamp scheduled for October 7th and 8th in Los Altos California and we realize we need to have our web site to sign up and running yesterday! For those of you who don’t know what a codecamp is, basically, it’s a developer to developer weekend meeting where high quality presentations are given to an audience of enthusiastic developers. Typically, 30 or 40 speakers running simultanious presentations to 300 or so attendees. Codecamps are all Volunteer, all free, and always on a weekend. So, our web site needs to allow sign ups for speakers and their presentations, attendess to let us know they are coming, provide information about the Venue as well as ultimately provide scheduling information about classes. Most importantly, it needs to do it with style and pizazz.

more...



The Ultimate CAPTCHA Custom Server Control
Sunday 20 August 2006 @ 7:26 pm

In this article, the basic usage of a CAPTCHA custom server control will be discussed. This control is for use in ASP.NET 2.0 only. It is provided in source as well as executable form which means you can use it in your app_code or bin directly. If you use the DLL version, it will support drag and drop from the Visual Studio 2005 Toolbox. The control supports templates which means you can customize it to work in your application giving a consistent look and feel.

Below are two representations of the use of the CAPTCHA custom server control. One is simply using the control in it’s default configuration with no template, and the other is after modifying the controls template with extra contact information.

more...



Previous Page Next Page