• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

vaibhav
#1 Posted : Thursday, June 4, 2009 12:51:46 AM(UTC)
vaibhav

Rank: Member

Joined: 7/15/2008(UTC)
Posts: 1

Hello all,

I have written a class which generates the full category trail for any specified Catalog.Product as input.

All you have to do is to create an object of the class and call the function as follows:

1. Copy the attached "FullCategoryTrail.vb" file in the App_Code directory.
2. Write following lines of code where ever you want to display the trail.

Code:
Dim p As Catalog.Product = LocalProduct
Dim catTrail As New FullCategoryTrail()
Dim trail As String = catTrail.getCategoryTrail(p)


3. Display the trail variable -

Code:
Response.Write(trail)


Please let me know your comments, as this is the first time I am sharing something on this forum.

I hope this would help someone.

Thank you,
Vaibhav
File Attachment(s):
FullCategoryTrail.vb (3kb) downloaded 164 time(s).

You cannot view/download attachments. Try to login or register.
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012