Dropping user controls on a form

  • Thread starter Thread starter Beringer
  • Start date Start date
B

Beringer

I not sure if this is the correct forum for such a question but if someone
can help me great!

I just created a user control (have created several user controls and don't
have this problem) and when I try to drop it on a form (during design mode)
I get the following exception:
"Object referenece not set to an instance of an object."

If I create the control at runtime I don't have any exceptions thrown.
What have I done wrong?

Thank you in advance,
Eric
 
Something is null at the time that this occurs. One thing to check is
that the id of the user control tag in the aspx files matches the
member variable. Otherwise, whatever is contained in the aspx file will
evaluate to null which would result in this error.

So, either something is not created when it should be, or something is
evaluating to null. I would help if perhaps you posted some example.


--
Xavier Pacheco
Xapware Technologies Inc

manage your projects: www.xapware.com/ActiveFocus.htm
the blog: www.xavierpacheco.com/xlog
the book: www.amazon.com/exec/obidos/ASIN/0672324431//xavierpacheco-20
 
Back
Top