Page 1 of 1

How to display product description with featuredproductsgrid

Posted: Thu Jun 25, 2009 9:52 am
by gio50000
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

Re: How to display product description with featuredproductsgrid

Posted: Thu Jun 25, 2009 10:06 am
by mazhar
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

Re: How to display product description with featuredproductsgrid

Posted: Thu Jun 25, 2009 11:51 am
by gio50000
@mazhr - that works but how can I only display the first 100 characters?

Gio

Re: How to display product description with featuredproductsgrid

Posted: Fri Jun 26, 2009 8:50 am
by mazhar
Try following

Code: Select all

Eval("Description").ToString().Substring(0,100)
instead of

Code: Select all

Eval("Description")