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
Catalog Node Type enum
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Catalog Node Type enum
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
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
Re: Catalog Node Type enum
try as below
Code: Select all
(short)CatalogNodeType.Product
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Catalog Node Type enum
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
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