Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:


Line 411:            if (Rd.HasRows)
Line 412:            {
Line 413:                myDataList.DataSource = Rd;
Line 414:                myDataList.DataBind();
Line 415:                myDataList.Visible = true;

Source File: f:\Claes last\Projects\ContentCtrl.ascx.cs    Line: 413

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ContentCtrl.BindResult(String sSQL, DataList myDataList) in f:\Claes last\Projects\ContentCtrl.ascx.cs:413
   ContentCtrl.ProjectDetailsView_DataBound(Object sender, EventArgs e) in f:\Claes last\Projects\ContentCtrl.ascx.cs:727
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +121
   ContentCtrl.DisplayDatails() in f:\Claes last\Projects\ContentCtrl.ascx.cs:497
   ContentCtrl.Page_Load(Object sender, EventArgs e) in f:\Claes last\Projects\ContentCtrl.ascx.cs:76
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0