Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Undefined controls on user control?

Reply
Thread Tools

Undefined controls on user control?

 
 
Mervin Williams
Guest
Posts: n/a
 
      02-14-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined vs. undefined (was: new Array() vs []) VK Javascript 45 09-12-2006 05:26 PM
using javascript in User controls to access server controls of the user control Faizan Ahmed ASP .Net Building Controls 1 01-04-2005 04:09 PM
using javascript in User controls to access server controls of the user control Faizan Ahmed ASP .Net Web Controls 1 01-04-2005 04:09 PM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM
Undefined controls on user control? Mervin Williams ASP .Net Web Controls 0 02-14-2004 12:51 AM



Advertisments