in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

This Blog

Syndication

Mirrored Blogs

Help, my database updates don't stick

Just a quick post to remind people of the ASP.net life cycle.

Most people learn this early on in their ASP.Net life, but it's something that can be overlooked and leave you slapping your head in frustration.

Recently, I was working on a simple page that has some text box fields, which are pre-populated with a users details, you edit those and click submit, it submits the new details and refreshes the page, hopefully with the new details.

My database updates didnt seem to work, I searched through my data access layer and business logic layer to no avail, then I slapped my head and mouthed a few curse words when I realized that I'd populated my text boxes in the Page_Load section, when really I should have done it on the OnPreRender or a similar event.

To brush up on the events life cycle check out this article.

Read the complete post at http://roddotnet.blogspot.com/2008/05/help-my-database-updates-dont-stick.html


Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts