harigoud.t wrote:Hi,
I am new to this forum and even to nopcommerce. I want to add sliding image on my homepage.
I have some slider scripts but i don't know where to add the code.
Please help me.
thanks n advance.
If you have some script then create a new .ascx file in you modules folder, add your script to that let's say Slider.ascx file.
Then open Default.aspx page and Register that file which you created before, in this case Slider.ascx
Open Default.aspx file and add folowing line in top of your page:
<%@ Register TagPrefix="nopCommerce" TagName="Slider" Src="~/Modules/Slider.ascx" %>
Then add following line where your slider should appear:
<nopCommerce:Sliders ID="ctrlSlider" runat="server" />
This is easiet way to do this, later you will be able to edit your slides only, by not touching any other code.