Recent Posts
Calendar
November 2009
S M T W T F S
« Oct   Dec »
1234567
891011121314
15161718192021
22232425262728
2930  

Archive for November, 2009

GridView and Updating A Row Manually

G07L0095

A couple of days ago I mentioned a project that I’ve been working on that is a bit out of the ordinary as far as GridViews go.  One of the issues I’ve had is that the edit template doesn’t map to the view template very well.

OK, it doesn’t map at all.

You see, the data that gets stored back to the database during the edit could go to two of four different tables.  But the view is generated from a stored procedure that gathers the information from those tables and makes the result look like it came from one table.

So how do you have the GridView update the database under these conditions?

Read the rest of this entry »

Where Does Live Writer Store Themes

A04C0045

I recently changed my theme to one that has a dark background with light content areas and discovered that Windows Live Writer, the blog editor I use to compose my blogs, doesn’t pick up the style for the content area when it decides what to display in the editor window.

Surely, this can’t be that hard to fix.  But where does Live Writer store the template information?  And can I change the information without mangling the “Preview” display?

The first took a quick search on Google, where I found How to Manually Edit Blog Styles for Windows Live Writer.  The problem is, the article was written for Windows XP and I’m using Windows 7.  It didn’t map all that well.

Read the rest of this entry »

Access a control by ID From Within a Databound Control

back-041

Databound controls are at once very easy and very frustrating.  If you just need to do some simple databinding that gets a list of items on the screen and you need the ability to edit those items, you are all set.

But once you need to do anything that deviates from that simple pattern, you are kind of stuck.  One of the problems involves accessing a control in a templated item.

Read the rest of this entry »