Hey guys, I've been helping a buddy of mine trying to figure out this problem with his asp.net site, basically from the admin panel you add a product and it will make the page not work, but if you delete it, it'll work fine, heres the code coming back.
Line 38: ((HtmlGenericControl)e.Item.FindControl("divPanel")).Attributes["class"] = "product_panel right_col";
Line 39:
Line 40: ((HtmlGenericControl)e.Item.FindControl("divRating")).Style["width"] = (int.Parse(drv["OurRating"].ToString()) * 15).ToString() + "px";
Line 41:
Line 42: string avail = "";
I'm not understanding the problem, I dont know much asp.net, so be easy on me..
Heres the Stack Trace;
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7467783
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Int32.Parse(String s) +23
smokes.rptProducts_ItemDataBound(Object sender, RepeaterItemEventArgs e) in d:\Domains\theherbalhut.com\wwwroot\smokes.aspx.cs:40
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
System.Web.UI.WebControls.Repeater.DataBind() +75
smokes.Page_Load(Object sender, EventArgs e) in d:\Domains\theherbalhut.com\wwwroot\smokes.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627