09-23-04 02:47 AM
Add a reference to Microsoft.CommerceServer.Runtime.dll
public string GetCategoryDisplayName(string catalogName, string
categoryName, string language)
{
ProductCatalog productCatalog =
CommerceContext.Current.CatalogSystem.GetCatalog(catalogName);
productCatalog.ActiveLanguage = language;
Category category = productCatalog.GetCategory(categoryName);
DataSet ds = category.GetCategoryProperties();
return ds.Tables[0].Rows[0]["DisplayName"];
}
--------------------
Thread-Topic: DisplayName For categories
thread-index: AcSe5t0LQx/S4tYfSr+kkCh0GEAS9w==
X-WBNR-Posting-Host: 81.255.177.89
From: "examnotes" <Talkbiz@discussions.microsoft.com>
References: <25C25662-EA3C-4DB1-8F6A-BC1C8A525674@microsoft.com>
<WV5ManNnEHA.2932@cpmsftngxa06.phx.gbl>
Subject: RE: DisplayName For categories
Date: Mon, 20 Sep 2004 00:53:06 -0700
Lines: 52
Message-ID: <BD7C0A8B-F29A-4C1B-8FC6-AD16625D762D@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14795
X-Tomcat-NG: microsoft.public.commerceserver.general
I use commerce server 2002 is I develop in ASP.NET
¶Thank you ¶
"Ragini Singh [MSFT]" wrote:
> Please let us know the version of Commerce Server you are working with.
>
> Thanks.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> EBusiness Server Team
> --------------------
> Thread-Topic: DisplayName For categories
> thread-index: AcScnPXkHX+axzunSlebDP/CJHPD4Q==
> X-WBNR-Posting-Host: 81.255.177.89
> From: "examnotes" <Talkbiz@discussions.microsoft.com>
> Subject: DisplayName For categories
> Date: Fri, 17 Sep 2004 02:59:02 -0700
> Lines: 10
> Message-ID: <25C25662-EA3C-4DB1-8F6A-BC1C8A525674@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14786
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi,
>
> Can you please tell me how I can get the â€"DisplayName†for
the
> categories ?
> For example, I have a category called â€"Colorâ€. If the
DisplayName is in
> French (Fr-FR) I must get â€"Couleur†or if the DisplayName is
in English
> (en-US), I must have â€"Colorâ€. And I want to get this using c#.
>
> Thanks,
> Talkbiz
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> EBusiness Server Team
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks
[ Post a follow-up to this message ]
|