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(O bject source, EventArgs
e)
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
System.Web.UI.WebControls.DataGridItem.OnBubbleEve nt(Object source,
EventArgs e)
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()




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

r = dsNewsGroupID.DevComm_NG_List.FindByNewsgroupID(in t.P(key));
// Updates the dataset table.

r.QueueOwner= queueOwner;