Error message

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];


What exactly that means?
 
K

Karl

Page.FindControl("MainHRTable") returned null....as in it couldn't find it.

Make sure your id is actually MainHRTable

also,
if MainHRTable is inside a control, such as a datalist/repeater.... you
won't find it that way...I'd need to see the html with the MainHRTable in it
to know for sure..

Karl
 

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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top