Moved!

I know, so short lived! However, I decided I wanted more control over the wordpress install and I have moved it to my own domain and hosting.

See you over there!

http://www.bdwakefield.com/idevelop/

GridView Paging in ASP.NET 2.0

I am posting this on a well covered topic, because the examples I saw online were stupidly complex for this simple task. Now, I don’t mean to say that this is the most efficient method, but for smaller sets of data (we have less than 1000 records returned from this query) it is fast and easy.

Obviously, make sure you have the GridView set to allow paging. You will need to add an event handler for the GridViewPageIndexChanging (Not “Changed”). There is a private property for the class, ds which is a custom DataSet we have in our application. Any DataSet or DataTable (binding source?) will (should) work.

protected void gvUsers_PageIndexChanging(object sender,
GridViewPageEventArgs e)
{
DataTable dt = ds.GetUsers;
gvUsers.DataSource = dt;
gvUsers.PageIndex = e.NewPageIndex;
gvUsers .DataSource = dt;
gvUsers .DataBind();
}

Black Friday needs to just go away…

I waited a while, till I calmed down a bit. I had though about actually going out this year to buy a TV. I thought better of it. I am glad that I did. I ended up spending the afternoon with my Father, Grandparents, and Aunt talking about their history and getting it all on video. This is worth far more than the $300 I *might* have saved on a TV.

In any event, after reading this post on Tech Republic, I am a little more miffed about the whole thing. I remember the select few times going out on BF, there was just LOOOOONG lines. This is getting insane though. I don’t recall if it happened last year or not, but people have actually been killed over this stuff. Maybe it isĀ  more of an issue because of the current state of the economy? Who knows.

Two men shot each other over a toy?
An overnight stock person, trampled (all for a barely over minimum wage job too, I am sure).
A pregnant woman is knocked over and also trampled, resulting in a miscarriage (Reported as inaccurate).

What the hell is wrong with people? I mean is it really so important to buy that toy that you need to shoot somebody? I know I shouldn’t say this, but in that case, Darwin was hard at work. I really feel for the Wal-mart employee’s family. This person was just doing their SHITTY minumum wage job… and died because of a greedy mob.

It is a sad world we live in… Hope everybody had a Happy Thanksgiving…

Bald Eagle + Swimming pool = ?

Next Page »