Calling Product details page of startersite
hi,
i have added grid view on aspx page have product item details of selelcted category. 1 of column in grid item name hyperlink field. on clicking hyperlink, need show product details page in startersite.
can give clue calling product details page the hyperlink column
regards,
ginu
hi ginu
you might want code the productlist control in startersite. find following method:
protected string getitemurlstring(object data)
{
uri url = null;
catalogitemsdataset.catalogitem item = data as catalogitemsdataset.catalogitem;
if (item != null && !item.iscatalogclasstypesnull())
{
if (item.catalogclasstypes == (int)catalogclasstypes.categoryclass)
{
url = new categoryuri(item.catalogname, item.categoryname).geturl();
}
else
{
new producturi(item.catalogname, item.productid, item.variantid).geturl();url =
}
}
return (url == null) ? string.empty : url.originalstring;
}
by using producturi class, should need.
hope helps
j-p
Commerce Server > Commerce Server 2007
Comments
Post a Comment