I would like to add the product description to the featured products listing on my home page. With featuredprodctsgrid.aspx what Eval field do I use and how can I limit the content it to 150 characters? Visit http://www.airshowshop.com for a reference if needed.
Thank you,
Gio
How to display product description with featuredproductsgrid
- gio50000
- Commander (CMDR)
- Posts: 123
- Joined: Mon Feb 18, 2008 12:51 pm
- Location: Orlando, FL
- Contact:
How to display product description with featuredproductsgrid
Thank you,
Gio
Gio
Re: How to display product description with featuredproductsgrid
You need to make use of Eval("Description"). Read following thread all you need is to replace Summary with Description in that thread
viewtopic.php?f=44&t=8704
viewtopic.php?f=44&t=8704
- gio50000
- Commander (CMDR)
- Posts: 123
- Joined: Mon Feb 18, 2008 12:51 pm
- Location: Orlando, FL
- Contact:
Re: How to display product description with featuredproductsgrid
@mazhr - that works but how can I only display the first 100 characters?
Gio
Gio
Thank you,
Gio
Gio
Re: How to display product description with featuredproductsgrid
Try following
instead of
Code: Select all
Eval("Description").ToString().Substring(0,100)
Code: Select all
Eval("Description")