Seeking advice
-
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
-
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
-
There isn't a major performance issue with User Controls. If I understand your question, you are talking about dynamically loading UCs.
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.