exception peoblem

N

Nick Sedrak

Coould somebody help me to understand this error
Thanks

Line 55: //adptEmployees.Fill(dsEmployees, "Employees_Table");
Line 56: // Fill the Contacts data set.
Line 57: adptOrders.Fill(dsOrders1);
Line 58: // Bind to data -- populates the drpContactTypes and drpState
lists.
Line 59: //drpEmployees.DataBind();
Source File: c:\inetpub\wwwroot\contactmanagement\addcontacts.aspx.cs
Line: 57

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
ContactManagement.AddContacts.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\contactmanagement\addcontacts.aspx.cs:57
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
 
M

Michael Giagnocavo [MVP]

Sounds like adptOrders is null. Can you post the rest of your code?
-mike
MVP
 

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

Top