Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:


Line 92: 					}
Line 93: 
Line 94: 					string title = new CMSBrand(conn, language, int.Parse(product.GetField("prd_brand"))).GetField("brand_displayname")+" "+product.GetField("prd_title");
Line 95: 
Line 96: 					((HtmlTableCell)e.Item.FindControl("title")).InnerHtml = 	"<p><a href=\"/"+language+"/product/"+itemId+"\">"+productImg+"<br />"+title+"</a></p>";

Source File: c:\inetpub\vhosts\2009.puntoinformatico.it\UserControls\cart\management.ascx    Line: 94

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14777731
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   ASP.usercontrols_cart_management_ascx.BindCart(Object sender, RepeaterItemEventArgs e) in c:\inetpub\vhosts\2009.puntoinformatico.it\UserControls\cart\management.ascx:94
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +134
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +191
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +106
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   ASP.usercontrols_cart_management_ascx.Page_Load(Object s, EventArgs e) in c:\inetpub\vhosts\2009.puntoinformatico.it\UserControls\cart\management.ascx:49
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1385


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