I have a problem with Beginning ASP.NET E-Commerce With Visual Basic.NET and Visual Studio.Net
erro message : System.NullReferenceException: Object reference not set to an instance of an object
source error:
Ãà 54£º
Ãà 55£º ' Supply the data grid with the list of departments
Ãà 56£º categoriesGrid.DataSource = catalog.GetCategoriesWithDescriptions(departmentId )
Ãà 57£º
Ãà 58£º ' The DataKey of each row is the category ID.
source code : C:\BegECom\WroxJokeShop\UserControls\CatagoriesAdm in.ascx.
vb line: 56
stake detective:
[NullReferenceException: Object reference not set to an instance of an object.]
WroxJokeShop.CategoriesAdmin.BindCategories() in C:\BegECom\WroxJokeShop\UserControls\CatagoriesAdm in.ascx.
vb:56
WroxJokeShop.CategoriesAdmin.Page_Load(Object sender, EventArgs e) in C:\BegECom\WroxJokeShop\UserControls\CatagoriesAdm in.ascx.
vb:31
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()