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:

code snippet

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

{

url = new producturi(item.catalogname, item.productid, item.variantid).geturl();

}

}

return (url == null) ? string.empty : url.originalstring;

}

 

 

by using producturi class, should need.

 

hope helps

 

j-p



Commerce Server  >  Commerce Server 2007



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'