When clicking the "Add to cart", or the "Add options" while using the "Featured Products" module off the home page; it returns this error:
Unable to cast object of type 'ASP.desktopmodules_smithcommon_controls_smithbutton_ascx' to type 'System.Web.UI.WebControls.DataListItem'.
DotNetNuke.Services.Exceptions.PageLoadException: Unable to cast object of type 'ASP.desktopmodules_smithcommon_controls_smithbutton_ascx' to type 'System.Web.UI.WebControls.DataListItem'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_smithcommon_controls_smithbutton_ascx' to type 'System.Web.UI.WebControls.DataListItem'. at Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.btnAddBasket_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Latest DNN, Latest SC
Any ideas of a fix?