Last post Apr 26, 2011 03:02 PM by jkirkerx
Apr 26, 2011 09:31 AM|shtrudel|LINK
I have couple of questions regarding GetDesignTimeHtml function
Apr 26, 2011 03:02 PM|jkirkerx|LINK
Design view is limited to just designing a page.
You cannot run code, such as getting a value from the database, math equation.
The only code that will run are the built-in functions of the design container, such as selecting properties or editing a collection, viewing a controls collection and editing it. The design view just renders the markup on the webform.
As far as debuging goes, that like finding a needle in the hay stack. I leraned from experience, knowing that certain code will crash the design view, and omitting them in code view. So basically, I fork out my server code, and create 1 runtime module and
1 design view module. In runtime, the server know which module to process. On the design view module, I just render it to the screen.