The question is in the title but to make it clearer when you use a normal server control like
<asp:textbox />
<CC1:CtrlArticleList SortBy="Title" ID="compositeControlArticleList" runat="server" />
the properties of textbox allow you to select from a dropdown list (eg visibility=...true or false). How do I replicate this in composite control?
Added code since question asked:
Someone suggested using an enum but not sure how to set this up:
enum SortBY { Date, Title };
[Bindable(false), DefaultValue(""), Description("The sorting type of the DataPager")]
public SortBY SortBySomething
{
get
{
SortBY getDate = SortBY.Date;
if(getDate == (SortBY)ViewState["SortBy"])
{
return SortBY.Date;
}
else
{
return SortBY.Title;
}
}
set
{
ViewState["SortBy"] = value;
}
}