Here is the error:
Code:
Server Error in '/' Application.
Cannot insert the value NULL into column 'ProductID', table 'DatabaseName.dbo.Product'; column does not allow nulls. INSERT fails.
The statement has been terminated.
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: Cannot insert the value NULL into column 'ProductID', table 'DatabaseName.dbo.Product'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Source Error:
Line 1328:
Line 1329: sql.Append(")");
Line 1330: DB.ExecuteSQL(sql.ToString());
Line 1331:
Line 1332: using (SqlConnection dbconn = new SqlConnection(DB.GetDBConn()))
Source File: e:\inetpub\wwwroot\Web\admin\entityEditProducts.aspx.cs Line: 1330
Stack Trace:
[SqlException (0x80131904): Cannot insert the value NULL into column 'ProductID', table 'DatabaseName.dbo.Product'; column does not allow nulls. INSERT fails.
The statement has been terminated.]
AspDotNetStorefrontCore.DB.ExecuteSQL(String Sql) in C:\AspDotNetStorefront\Fortress\DP_Products\WebReleases\AspDotNetStorefrontML\Ashland\ASPDNSFCore\DB.cs:675
AspDotNetStorefrontAdmin.entityEditProducts.UpdateProduct() in e:\inetpub\wwwroot\Web\admin\entityEditProducts.aspx.cs:1330
AspDotNetStorefrontAdmin.entityEditProducts.btnSubmit_Click(Object sender, EventArgs e) in e:\inetpub\wwwroot\Web\admin\entityEditProducts.aspx.cs:1087
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456