Unable to initialize server controls

  • Thread starter Thread starter mcollier
  • Start date Start date
M

mcollier

I'm having trouble getting my server controls in my code-behind file to
initialize. I field names exactly match that of the control in the
ASPX file. The controls are also public. However, in my Page_Load()
method the fields remain unitialized (null). Each of my pages derive
from my own base page, which in turn derives from Page. Could I be
overrided a crucial method here, and if so, what should I be looking
for? Also, each page uses a custom control (derives from UserControl
and INamingContainer). This custom control, WebTemplate, provides the
basic look and feel for each page.

Any help would be greatly appreciated.
 
Without any code it's hard to tell what's wrong...my guess is simple user
error. One thing you could do is turn tracing on @Page trace=true and see
what the control Ids are...

Karl
 
I'll see if I can't work up a short, simple example this afternoon. My
running theory so far is that the "template" (really a user control)
that implements INamingContainer is the culprit. This provides my
"master pages" like functionality.
 
Back
Top