Undefined controls on user control?

Discussion in 'ASP .Net Web Controls' started by Mervin Williams, Feb 14, 2004.

  1. 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
    Mervin Williams, Feb 14, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?REo=?=
    Replies:
    2
    Views:
    463
    =?Utf-8?B?REo=?=
    Dec 1, 2005
  2. Mantorok Redgormor
    Replies:
    70
    Views:
    1,729
    Dan Pop
    Feb 17, 2004
  3. Mervin Williams

    Undefined controls on user control?

    Mervin Williams, Feb 14, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    103
    Mervin Williams
    Feb 14, 2004
  4. Faizan Ahmed
    Replies:
    1
    Views:
    270
    John Saunders
    Jan 4, 2005
  5. Faizan Ahmed
    Replies:
    1
    Views:
    345
    John Saunders
    Jan 4, 2005
Loading...

Share This Page