Home All Groups Group Topic Archive Search About

Newbie Alert: Inserting web controls dynamically

Author
27 Apr 2006 1:11 PM
RSH
I have a template page that contains a typical header, navigation menu, and
footer that are on every page throughout a site.  I was trying to
"Objectize" the redundant code by placing them in ascx control files.  This
works great for pages that contain straight HTML and for pages that contain
the template in its entirety, but I am having problems when it comes to
inserting other web controls...and using logic to show or hide certain parts
of the page based on the calling page.

From a conceptual standpoint how should I go about setting up the template
page so I can insert components dynamically?

I have set the controls that have properties to receive the calling page but
I don't know how to use the received value to show and hide elements that
contain anything other than straight HTML.

Is there any reference material that would educate me on doing this sort of
thing?

Thanks for any help you might be able to provide me.
Ron