Sorry if this is not the place for C#.
in short:
public enum MyEnum
{
One,
Two,
Three
};
page_load
{
MyEnum num = (MyEnum)Request .Params("number ");
}
assume the page is being called
www.mypage.com? number="One"
i get a simple "Error 7 Cannot convert type 'string' to 'MyEnum' .... "
Thanks in advance
in short:
public enum MyEnum
{
One,
Two,
Three
};
page_load
{
MyEnum num = (MyEnum)Request .Params("number ");
}
assume the page is being called
www.mypage.com? number="One"
i get a simple "Error 7 Cannot convert type 'string' to 'MyEnum' .... "
Thanks in advance
Comment