Adding paging to a repeater

While the Gridview control has pagination built in, alot of the time, you may want to add pagination into your repeater control as well. Thankfully, ASP.NET has a PagedDataSource object to help accomplish this task.

Read More

Get Letters in Alphabet with C#

C# 15.3.2009 No Comments

Have you ever needed to do something with the letters of the alphabet? This is quite common in navigation systems where you have alot of data and need to break up things into sections alphabetically. You can always create an ArrayList and populate each section manually, but a better way is to just use the…

Read More

SQL Delete Duplicate Records

SQL 14.3.2009 No Comments

I ran into the issue today with a client where their data was messed up with duplicate data (but different identity seeds) The following code only works when there is an identity seed. Remember to inlcude all the columns that would indicate a duplicate in the GROUP BY.

Read More

Upload, Read, and Parse file in ASP.NET

While there are many tutorials for ASP.NET on uploading and saving a file to the disk as well as read and parsing a file from the disk, there is no simple tutorial for uploading, reading and parsing the data in memory. A client of ours needed to do this so I thought I’d list out…

Read More

Row handle referred to a deleted row or a row marked for deletion

ASP, SQL 11.3.2009 No Comments

As I was maintaining some old ASP code for a client, we ran across the error below while migrating to a new site

Read More

Create popup date picker using ASP.NET calendar control

A client recently required a popup ASP.NET calendar control to use on their site. I thought we would share our solution to this.

Read More

Validation of viewstate MAC failed

ASP.NET 9.3.2009 No Comments

We were working with a client on a site and for some reason all of a sudden we got the message below.

Read More
12»