Hi just wondering if there is anyway that I could duplicate controls in a asp.net pages.
So for example, currently for one of my pages, I have a panel at the top of the page with alot of controls in them ( eg开发者_Python百科 next/previous buttons, labels, trees, etc).
However I wanted to add the exact duplicate of this panel on the bottom of the page aswell, with exact functionality.
Is there a easy way to do this, or do I need to do it manually...
Thanks
One option is to place all the controls inside a UserControl. Then include the UserControl once at the top and once at the bottom.
If you do this then wiring up all events might be more difficult, though.
What you're after is either UserControls or Master Pages, or a combination of both.
精彩评论