tricky note here for some reason sometimes the designer.cs will not update itself and the added literal control will not be found in the code behind. If this is the case I would check to ensure the following line is in the slider.ascx.designer.cs file
And you followed the directions in the first post of this topic? Are you using v1.9? Did download the entire source code for v1.9? What version of visual studio are you using?
namespace NopSolutions.NopCommerce.Web.Modules { public partial class Slider : BaseNopFrontendUserControl {
NOT
public class Slider {
If you can go back and re read the first post and make sure you follow each direction I am sure it will work. If it does not please post your exact code in your slider .cs file here
using System; using System.Collections; using System.ComponentModel; using System.Configuration; using System.Data; using System.Text; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using NopSolutions.NopCommerce.BusinessLogic; using NopSolutions.NopCommerce.BusinessLogic.Categories; using NopSolutions.NopCommerce.BusinessLogic.Media; using NopSolutions.NopCommerce.BusinessLogic.Products; using NopSolutions.NopCommerce.BusinessLogic.SEO; using NopSolutions.NopCommerce.Common.Utils; using NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings; using NopSolutions.NopCommerce.BusinessLogic.Infrastructure;
I am sure you have the wrong source code to do this addition You need to grab the source code version and open the project via the sln file in the root directory The version you have is a website solution and not the web application solution. Di you go to this link http://nopcommerce.codeplex.com/releases/view/51059#DownloadId=176949 and download that version?
Somehow your project is not a web application project but a website project. That is the only thing I can think of. How did you open your project? Did you open it with the NopCommerce.sln file or did you have to create the project via an existing website?
Go here and download this version of Nop and try the test again after opening the project via the sln file in the root directory.