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 66:             n++;
Line 67:         }
Line 68:         L_category.Text = ddl_categories.SelectedItem.Text;
Line 69:     }
Line 70: 

Source File: f:\www\highfive.gr\www.highfive.gr\list.aspx.cs    Line: 68

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   list.ddl_categories_DataBound(Object sender, EventArgs e) in f:\www\highfive.gr\www.highfive.gr\list.aspx.cs:68
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +105
   System.Web.UI.WebControls.ListControl.PostPerformDataBindingAction() +62
   System.Web.UI.WebControls.ListControl.PerformSelect() +44
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +23
   System.Web.UI.Control.PreRenderRecursiveInternal() +88
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883


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