Dealare field
protected WeekDays _daysWeek = WeekDays.Sun;
/// Days of the Week to be appended in the Dropdown List
public enum WeekDays
{
Mon,
Tue, Web, Thur, Fri, Sat, Sun
};
/// Properties
[Personalizable(PersonalizationScope.Shared)]
[WebBrowsable(true)] [System.ComponentModel.Category("My Zone")]
[WebDisplayName("My DropDown Property")] [WebDescription("Get webpart properties
with DropDown")]
public WeekDays SelectedDay
{
get
{ return _daysWeek; }
set
{ _daysWeek = value; }}