Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
we have a project that is requiring an additional text block to display on the product page (above product name), and the obvious thing to me is to utilize the short description field for this, since data fields already exist, etc. I've tried adding the short description code-behind found on the detail list category template to the product page but no luck.
anyone know the exact code I need to add to the product page to achieve this? |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
1) Add a label control to the page where you want the description to display: Code: <asp:Label id="lblShort" runat="server" /> 2) In the code behind modify the PopulateProductInfo() method and insert this line: Change this line: Code:Me.lblDescription.Text = Me.LocalProduct.LongDescription To these lines: Code:Me.lblDescription.Text = Me.LocalProduct.LongDescription Me.lblShort.Text = Me.LocalProduct.ShortDescription
|
|
|
|
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
|
|
|
|
|
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.