Error message, again.

M

Mark Goldin

I have the folllowing error:

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 67: UserControls.MainHRTable BasicInfo =
(UserControls.MainHRTable)Page.FindControl("MainHRTable");
Line 68: BasicInfo.AssignValue();
Line 69: // DataRow DR;
Line 70: // DR = Employee.Tables["employee"].Rows[0];

Line 68 is in RED.
MainHRTable is a user control.

What exactly that message means?
 
Z

z. f.

on line 67 you assingned a null value to the BasicInfo variable.
the line 68 fails on calling on the method AssignValue, since the BasicInfo
variable is a null reference (it has no value)

the FindControl("MainHRTable") call failed to find the control you're
looking for.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top