Undefined controls on user control?

M

Mervin Williams

I have created a user control from a web form onto which I placed several
asp.net controls in a table. In creating the user control, I removed the
<html>, <header>, <body>, and <form> tags, so that the outer <table> tag is
what remains.

Upon running the user control and trying to access a label on the user
control, I get a "System.NullReferenceException: Object reference not set to
an instance of an object." In fact, all of the visual asp.net controls on
the user form are "undefined" - only those variables that I set manually
have values set for them.

Any help would be greatly appreciated.

Mervin Williams
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,099
Messages
2,570,626
Members
47,237
Latest member
David123

Latest Threads

Top