Exception Details: System.NullReferenceException: Object reference not set

S

Stefan

Hey folks,
Wow... After only 4 hours... I figured out the Index out of range error
and now have run into the error below ... Any help would be greatly
appreciated ...


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

Line 256: Session["mydataset"] = dataSet1;
Line 257: // Updates the dataset table.
Line 258: r.QueueOwner= queueOwner;
Line 259:
Line 260: // Calls a SQL statement to update the database from the
dataset
Source File: c:\inetpub\wwwroot\qoupdate\qoupdate.aspx.cs Line: 258

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
QoUpdate.WebForm1.DataGrid1_UpdateCommand(Object source,
DataGridCommandEventArgs e) in
c:\inetpub\wwwroot\qoupdate\qoupdate.aspx.cs:258

System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs
e)
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs
e)
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source,
EventArgs e)
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()




KODE -
----------------------------------------------------------------------------
-----------------------------

r = dsNewsGroupID.DevComm_NG_List.FindByNewsgroupID(int.Parse(key));
// Updates the dataset table.

r.QueueOwner= queueOwner;
 

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

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,819
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top