开发者

ENUM DropdownList as a Custom Property in WebPart

开发者 https://www.devze.com 2023-04-03 12:14 出处:网络
how would i do if i have to show the value in the dropdownlist something like this: UTF-8,ISO-8859-1 below prop works fine if there is no space or no hypen and i know there is one option to use under

how would i do if i have to show the value in the dropdownlist something like this:

UTF-8, ISO-8859-1 below prop works fine if there is no space or no hypen and i know there is one option to use underscore but does not seems look nice, so i am looking to displa开发者_C百科y the value in dropdownlist UTF-8, ISO-8859-1

public enum ddlEnum { option1, option2, option3 }
[WebBrowsable(true),
Category("Miscellaneous"),
Personalizable(PersonalizationScope.Shared),
WebDisplayName("Dropdown List Display Text")]
public ddlEnum ddlProp { get; set; }


I don't think its possible since enum values have the same definition rules as other C# identifiers.

0

精彩评论

暂无评论...
验证码 换一张
取 消