Ok lmao I fixed my own problem again I just deleted the line and all my sub catergories show up my search works my login works now for my next problem.
when I got to view details I get this error
Server Error in '/' Application.
--------------------------------------------------------------------------------
Invalid column name 'PATCategoryID'.
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.Data.SqlClient.SqlException: Invalid column name 'PATCategoryID'.
Source Error:
Line 133: DataSet internalData = ((PersistableObjectSet)persistObjectSet).ResultSet ;
Line 134: SqlDataAdapter sqlDa = new SqlDataAdapter( currentCmd );
Line 135: sqlDa.Fill( internalData );
Line 136: }
Line 137:
Source File: C:\Inetpub\wwwroot\wineshopny\CMPServices\SqlPersi stenceContainer.cs Line: 135
Stack Trace:
[SqlException: Invalid column name 'PATCategoryID'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) +45
System.Data.SqlClient.SqlCommand.System.Data.IDbCo mmand.ExecuteReader(CommandBehavior behavior) +5
System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
WS.CMPServices.SqlPersistenceContainer.AssignRetur nValueToDataSet(CommandMapping cmdMap, SqlCommand currentCmd, PersistableObject& persistObjectSet) in C:\Inetpub\wwwroot\wineshopny\CMPServices\SqlPersi stenceContainer.cs:135
WS.CMPServices.SqlPersistenceContainer.Select(Pers istableObject selectObject) in C:\Inetpub\wwwroot\wineshopny\CMPServices\SqlPersi stenceContainer.cs:50
[Exception: Persistance (Select) Failed for PersistableObject]
WS.CMPServices.SqlPersistenceContainer.Select(Pers istableObject selectObject) in C:\Inetpub\wwwroot\wineshopny\CMPServices\SqlPersi stenceContainer.cs:66
WS.Web.ProductCatalog.ProductCatalog.GetProductAtt ributeValues(Int32 productId) in C:\Inetpub\wwwroot\wineshopny\ProductCatalog\Produ ctCatalog.cs:189
WS.Web.ProductCatalog.ProductCatalog.GetProductDet ails(Int32 productId) in C:\Inetpub\wwwroot\wineshopny\ProductCatalog\Produ ctCatalog.cs:149
WS.Web.Products.ProductDetail.LoadData() in c:\inetpub\wwwroot\wineshopny\wineshopny\productde tail.aspx.cs:42
WS.Web.Products.ProductDetail.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\wineshopny\wineshopny\productde tail.aspx.cs:36
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +714
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Brett G. Murphy
|