vb6 webclass equivalent (or better) in asp.net ?
-
howdy all, busy designing a new web application that would be perfectly suited to a webclass application. ie. one template page that defines the layout and within that layout tokens to define where runtime generated content should be placed. my question is this ... how should we be doing this kind of thing in asp.net ? should we build server controls and drop these onto the aspx pages ? should we build one page that serves as a template and the other pages inherit from this ? should we still use something similar to token substitution ? please help, any ideas ... suggestions ... guidance would be hugely appreciated cheers Ryan
-
howdy all, busy designing a new web application that would be perfectly suited to a webclass application. ie. one template page that defines the layout and within that layout tokens to define where runtime generated content should be placed. my question is this ... how should we be doing this kind of thing in asp.net ? should we build server controls and drop these onto the aspx pages ? should we build one page that serves as a template and the other pages inherit from this ? should we still use something similar to token substitution ? please help, any ideas ... suggestions ... guidance would be hugely appreciated cheers Ryan
Page Templates in ASP.NET[^] ASP.NET is far more powerful in this manner than vb6 webclasses :) You can also use user/custom/server controls for this, but in reality you will find yourself using both technologies.
Paul Watson
Bluegrass
Cape Town, South Africa -
Page Templates in ASP.NET[^] ASP.NET is far more powerful in this manner than vb6 webclasses :) You can also use user/custom/server controls for this, but in reality you will find yourself using both technologies.
Paul Watson
Bluegrass
Cape Town, South Africathanks ... i have been toying with some ideas, of which some are good - others seem better. has anybody had experience in implementing this type of thing ? which method is best ? i am currently toying with the idea of using a base class that all pages inherit from. this base class will use user controls to dynamically build their content at runtime. each page will then only be concerned with what needs to be placed in the content section, the base class will handle the rest. is there an equivalent to visual inheritance in asp.net ? cheers Ryan
-
thanks ... i have been toying with some ideas, of which some are good - others seem better. has anybody had experience in implementing this type of thing ? which method is best ? i am currently toying with the idea of using a base class that all pages inherit from. this base class will use user controls to dynamically build their content at runtime. each page will then only be concerned with what needs to be placed in the content section, the base class will handle the rest. is there an equivalent to visual inheritance in asp.net ? cheers Ryan
ryancrawcour wrote: which method is best Both... lol. When you need a consistent "style" for a bunch of pages sitewide then use a template. But then in your template also make use of custom controls. They are not mutually exclusive. ryancrawcour wrote: is there an equivalent to visual inheritance in asp.net ? Not sure officially what visual inheritance is but Google has some links.
Paul Watson
Bluegrass
Cape Town, South Africa