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. Seeking advice

Seeking advice

Scheduled Pinned Locked Moved ASP.NET
tutorialdesignperformancehelp
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.
  • K Offline
    K Offline
    Keith Andersch
    wrote on last edited by
    #1

    Hi all. I am wondering what you all think about this design issue. I have a page where a few things are static and one part, essentially another page, of it will be inserted when a choice is made in a combo box. The inserted portions contain static controls(text boxs, labels, drop down, etc...). I've seen this done on other websites but can't find any tutorials on how to do this. So I've thought of a couple of ways to go forward. One, I can create a user control for each inserted item, which there could be 10+ of, and register all of them on the page. Two, I can create classes which inherit from Panel for each item, programmatically add in each field into the panel at construction of the class. In either case, it could be pasted/created in when needed (on selection in the combo box). I would prefer the user control route but I'm not sure about the impact on performance of registering 10+ controls on a page will have. The class route will be more tinkering. I'd love to hear any kind of input on this. A link to a tutorial on how to do it would be good too. :) -Keith

    E 1 Reply Last reply
    0
    • K Keith Andersch

      Hi all. I am wondering what you all think about this design issue. I have a page where a few things are static and one part, essentially another page, of it will be inserted when a choice is made in a combo box. The inserted portions contain static controls(text boxs, labels, drop down, etc...). I've seen this done on other websites but can't find any tutorials on how to do this. So I've thought of a couple of ways to go forward. One, I can create a user control for each inserted item, which there could be 10+ of, and register all of them on the page. Two, I can create classes which inherit from Panel for each item, programmatically add in each field into the panel at construction of the class. In either case, it could be pasted/created in when needed (on selection in the combo box). I would prefer the user control route but I'm not sure about the impact on performance of registering 10+ controls on a page will have. The class route will be more tinkering. I'd love to hear any kind of input on this. A link to a tutorial on how to do it would be good too. :) -Keith

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      There isn't a major performance issue with User Controls. If I understand your question, you are talking about dynamically loading UCs.

      K 1 Reply Last reply
      0
      • E ednrgc

        There isn't a major performance issue with User Controls. If I understand your question, you are talking about dynamically loading UCs.

        K Offline
        K Offline
        Keith Andersch
        wrote on last edited by
        #3

        Ahh yes...it's all about the vocab. *sigh* I'll do some more searching. In fact, I already found some good things...hopefully. Thanks.

        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