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!
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…
WordPress Log-in Loop
So, I was updating a blog that I manage for somebody else using one of the automatic updater plug-in deals. It some where / some how failed. Whatever. So I edit the options table, clear the active plug in list, delete the two wpau_ tables, reactive, let it clean up the install, and then finish updating. Blech.
Then I get to the last step where it opens a new window / tab to let you see if you have to upgrade the database (at which point it does when you click upgrade).
BAM! Endless WordPress log-in loop. What in the name of the Sith is going on here?
So I fiddle with it. do what that blog post says, and away we go. Why did the update fail in the first place? I also found a random PHP file that only had one line (a comment).
//Silence is golden!
Seriously? Anyway, problem fixed.
Leave a Comment
Leave a Comment
Leave a Comment