Posted on: 12/22/2014 11:56:26 PM | Views : 544

In my own personal projects I would typically include all Enums and Constants in a separate class and reference them like: Constants.######## ...
That worked great! However, I'm now working on a large corporate project where I don't have the freedom to do that.  In my work, I just created a new Enum in the Global.asax.cs file.  In a typical ASP.NET Page I can refer to it this way:
XYZCompany.Sites.PartnerName.Global.DisplayType where "DisplayType" is the Enum in question. It would be great if there was some way in the ASP>NET Page file to provide a way shortcut that long string, ideally back to "DisplayType".  I've tried several things but have been unsuccessful. Note: I am currently forced to use VS2008 with this project so that is a definite restriction. Is there a way? Robert

Go to the complete details ...