Sep 092010
 

The other day while working on a Silverlight application I received the following error:
“Parser internal error: Object writer ‘xClassNotDerivedFromElement’. [Line: N Position: N]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)”
When calling the InitializeComponent() internal method on a custom user control.

So I did what I did best and searched Google for the answer, and while I didn’t end up finding my solution there I did find more about what can cause this error to occur. Continue reading »

Jan 192010
 

Recently we had a client ask us to add a label in front of the paging control on an ASP.NET gridview numeric paging control so that users would know what the numbers meant. This seemed like a reasonable request as we were dealing with users who may not be the most tech savvy, plus it didn’t seem like there would be much work that would need to be put in to accomplish this goal. To understand the solution you need to understand the steps at which it took to get there.

The first thing I tried was modifying the PagerTemplate, but little did I know that in ASP.NET when you modify this template on a GridView you overwrite the entire paging control. This obviously wasn’t what I wanted, I just needed to add a little text in front of all the page numbers, I didn’t want to rewrite it entirely. Continue reading »