Asp.net templating issues
Lawrence gave me the opportunity to comment about implementing a template system in asp.net.
I have evaluated a lot of template systems, from Paul Wilson's MasterPages to commercial products like Xheo.WebSkin. All implemented a "static" template with custom WebControls: when page loads, it should load with that layout.
But, if you want to load dinamically a WebControl with a Button and after a Button1_Click you would change the its container layout (to show a query results, for example), you can't, because Button1_Click fires after Page's OnInit event, where you call LoadControl and asp.net fires other necessary viewstate and postback events.. ahh, if I could temporarily change the order of these events.. ;-)
Asp.net is a great programming model, but it should allow us to take place to some little hidden things.. We will wait the next version..