Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. vb6 webclass equivalent (or better) in asp.net ?

vb6 webclass equivalent (or better) in asp.net ?

Scheduled Pinned Locked Moved Web Development
questioncsharpasp-netsysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ryancrawcour
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • R ryancrawcour

      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

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      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

      R 1 Reply Last reply
      0
      • P Paul Watson

        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

        R Offline
        R Offline
        ryancrawcour
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • R ryancrawcour

          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

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups