Adding controls to Page.Controls collection

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeremy Ames (yourname_at_here.com)
Date: 03/03/04


Date: Wed, 3 Mar 2004 10:53:14 -0600

I have run into a major road block with my page development projects. I am
trying to add a literal control to my asp.net page and I got an error
stating that the control could not be added because of code blocks (<% %>)
on the page. Most of these blocks can be handled by adding a label control
to the form so it is not that big of deal, but one of the things being
posted is the page title. I am not sure how I can access that from the code
behind page. I also call a function that creates a css style *** as well
as a function that creates my navigation bar for the web site. Is there a
way for me to get around the error without moving the code blocks? If not,
how can I implement the changes for the three problem areas?


Quantcast