How to access created enum in C# from code behind to aspx file
Below is my code behind C# code:
namespace Test开发者_如何学编程
{
public enum en
{
One,
Two
}
}
How can I access this created enum in my aspx file? Like using the enum in this code:
<%
%>
Thanks
This seems to work ala BoltClock (en didn't seem like a very good name).
namespace Test
{
public enum MYENUM
{
One,
Two
}
}
<% Response.Write(Test.MYENUM.One.ToString()); %>
精彩评论