20 July 2010

Create WebPart Properties with Drop Down Items.

Dealare field

protected WeekDays _daysWeek = WeekDays.Sun;

/// Days of the Week to be appended in the Dropdown List

public enum WeekDays
Tue, Web, Thur, Fri, Sat, Sun
/// Properties

[WebBrowsable(true)] [System.ComponentModel.Category("My Zone")]
[WebDisplayName("My DropDown Property")] [WebDescription("Get webpart properties
with DropDown")]
public WeekDays SelectedDay
{ return _daysWeek; }
{ _daysWeek = value; }

No comments:

Post a Comment

Thanks for your valuable comments

Rate Now: