Here is the Exa:
General.PeriodStatus PeriodStatusObj = (General.PeriodStatus)Enum.Parse(typeof(General.PeriodStatus), Convert.ToString(PeriodStatusHdn.Value.ToLower()));
where General is a class name and PeriodStatus is the enum name and PeriodStatusHdn.Value is a string value
cheers...
No comments:
Post a Comment