Geeks With Blogs
BizTalk Blog by Chris Han System Design for Enterprise Agility,
March 2007 Entries
Dynamically Loaded Control can not maintain values at PostBack?
I was trying to create and page with Asp.NET 2.0 and Ajax 1.0. I was using a placeholder control to dynamically load a user control based on the user selection. The first error I encountered is : {"Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls ......

Posted On Tuesday, March 27, 2007 10:01 AM 2.0 StyleSheetTheme works in design time but doesn't work at runtime?
In Asp.Net 2.0, you can use StyleSheetTheme in stead of Theme setting to enable design time style in VS IDE. Just make sure you close and reopen the page every time you change the setting. But one day, I encounter this problem: My style setting show up nicely in design time, but disappear when I run the page. By reading this article: , I fund that my stylesheet didn't being injected in to the generated HTML at all. As the matter of fact, the whole <head> ......

Posted On Thursday, March 8, 2007 8:56 AM

AJAX Tutorials: Where is SurveyQuestions.xml?
While I'm walking through the new AJAX extension tutorials, one of the example under topic Using the UpdatePanel Control with Data-Bound Controls really catch me. It shows how easy you can create an dynamic survey page with an content XML source. I remembered that back in 2002, how hard I was trying to create such implementation by using xslt and xmldocument class. At that time, java world has a server side solution called 'cocoon'. The basic idea is to translate XML to HTML using a xsl sheet. ......

Posted On Wednesday, March 7, 2007 9:25 AM

Copyright © Chris Han | Powered by: