vasa wrote:Thanks for the link. I looked at your link it does make sense with .aspx page but with NOP Commerce v2.4 there is no .aspx page and I want to add news scroller on home page in _ColumnsTwo.cshtml and I am not even sure where to begin. I will appreciate if someone can point to some example of how I can do that.
I also want help on where can I can call Xignite Service (in some controller) and can save data from web service to database and eventually get data from the DB to use in my News Scroller.
All examples are pretty basic. Need examples with NOP Commerce v2.4
Thanks for your quick reply.
Sorry for being late on replies due to timing difference,
For calling newsletterbox , just call :
<div class="news-subscription">
@Html.Action("NewsletterBox", "Newsletter")
</div>
in the columnstwo layout.
If you want to show the list of news on columnstwo layout
@Html.Action("List", "News")
For creating a partial view which is equivalent to user controls ,
Right click on the View, Go to ADD>View,
Click on the checkbox [ create as a partial view] select the masterpage, if you want to target specific model , for instance in your case you should go for strongly typed view and select NewsItemListModel (Nop.Web.Models.News), depends which type of partial view you want , the best thing is to read up on mvc 3 a bit from the beginning on asp.net , or buy a book professional asp.net mvc 3, which worked for me.