PDA

View Full Version : Prb: Moving objects from codebehind til markup



plykkegaard
Mar 22, 2009, 2:04 PM
Hi

To overcome some of the problems I have I tried to move more or less static objects from codebehind to markup
But this causes the generated clientside scripts to break

Moving eg Viewport, BorderLayout and GridPanel to markup should be fairly straightforward
How do I mix static objects created in markup with dynamic objects created in codebehind?
Is this possible at all?

- Peter

geoffrey.mcgill
Mar 22, 2009, 3:16 PM
How do I mix static objects created in markup with dynamic objects created in codebehind?

Is this possible at all?</p>

Yes. It doesn't really make a difference whether the object is created in markup or code-behind. They are essentially the same thing. Markup is basically created during the OnInit event of the Page. </p>

Posting a simplified code sample demonstrating the scenario would help us understand exactly what you're attempting to accomplish. </p>


</p>