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. ASP.NET
  4. UI Classes

UI Classes

Scheduled Pinned Locked Moved ASP.NET
designbusinessquestion
3 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.
  • T Offline
    T Offline
    Taurian110
    wrote on last edited by
    #1

    Hello Everyone I understand the concept of using Business Classes. But what about UI Classes? A possible scenario can be a web design that needs to be used over and over, in all web pages, can we design a UI Class through which all the other pages will Inherit and re-use that effort? Or is there another concept for that? If there is, is it to use Custom Controls? Thanks a lot. Best Regards...

    J 1 Reply Last reply
    0
    • T Taurian110

      Hello Everyone I understand the concept of using Business Classes. But what about UI Classes? A possible scenario can be a web design that needs to be used over and over, in all web pages, can we design a UI Class through which all the other pages will Inherit and re-use that effort? Or is there another concept for that? If there is, is it to use Custom Controls? Thanks a lot. Best Regards...

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      You can do both. For a project I worked on earlier this year, I created my own user control class (inheriting UserControl) and page class (inheriting Page) to add base code that work with our web framework. So when I created a new user control under the VS.NET, I set the class defined under the .ascx.(vb|cs) to inherit from my user control class. Using this design, I was able to add core functionally by changing the base class and just re deploying one assembly. ~Javier Lozano

      T 1 Reply Last reply
      0
      • J Javier Lozano

        You can do both. For a project I worked on earlier this year, I created my own user control class (inheriting UserControl) and page class (inheriting Page) to add base code that work with our web framework. So when I created a new user control under the VS.NET, I set the class defined under the .ascx.(vb|cs) to inherit from my user control class. Using this design, I was able to add core functionally by changing the base class and just re deploying one assembly. ~Javier Lozano

        T Offline
        T Offline
        Taurian110
        wrote on last edited by
        #3

        Sounds Interesting. Could you please be so kind to give some code or a simple web page example. Lets say I need a User Control Class that will have a Header. So when I Inherit other pages from this class, the Header would come along. I would really appreciate as much help I can get from you. Thanks. Best Regards...

        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