Commerce Server General - currency of a catalog

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2004 > currency of a catalog





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author currency of a catalog
Talkbiz

2004-09-29, 8:03 pm

Hello
I work on commerce server 2002. And I develop under ASP.NET C #. I wanted
to know how one can get the currency of a catalog and it’s symbol.
Thank you

Vinayak Tadas[MSFT]

2004-09-30, 10:40 am

You can get the currency for the catalog by doing something like this

ProductCatalog productCatalog =
CommerceContext.Current.CatalogSystem.GetCatalog("CatalogName");
DataSet catalogAttributes = productCatalog.GetCatalogAttributes();
string currency = catalogAttributes.Tables[0].Rows[0]["Currency"];
You will have to map the currency to a currency symbol using the
System.Globalization.NumberFormatInfo class.


--------------------
Thread-Topic: currency of a catalog
thread-index: AcSmLHsReKBTaiHeQiqenu3kMO5W1w==
X-WBNR-Posting-Host: 81.255.177.89
From: "=?Utf-8?B?VGFsa2Jpeg==?=" <Talkbiz@discussions.microsoft.com>
Subject: currency of a catalog
Date: Wed, 29 Sep 2004 06:59:04 -0700
Lines: 5
Message-ID: <AC0369EC-3057-444B-A33C-217DAB01D776@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:14876
X-Tomcat-NG: microsoft.public.commerceserver.general

Hello
I work on commerce server 2002. And I develop under ASP.NET C #. I wanted
to know how one can get the currency of a catalog and it’s symbol.
Thank you



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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com