Catalog Node Type enum

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Catalog Node Type enum

Post by jmestep » Fri Jan 23, 2009 8:53 am

I have to do certain things on the Admin catalog browse page, based on what kind of a catalog node type the link is and I need to have this refer to a table with the catalog node type as an integer.
public enum CatalogNodeType
{
Category = 0,
Product = 1,
Webpage = 2,
Link = 3,
}

I've looked up how to parse an enum some, but haven't got that figured out. I need to get the integer value for the enum (like 1) and use it as a parameter to load something else.
How do I get that value?
Like here - getting the integer of a CatalogNodeType
protected void DoDelete(CatalogNodeType catalogNodeType, int catalogNodeId)
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Catalog Node Type enum

Post by mazhar » Fri Jan 23, 2009 9:05 am

try as below

Code: Select all

(short)CatalogNodeType.Product

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Catalog Node Type enum

Post by jmestep » Fri Jan 23, 2009 1:25 pm

This worked. Thanks!
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply