标签:tab cms data repeater htm exchange sel value splay
1.DropDownList
asp.net页面:
<asp:DropDownList ID="drpTemplateType" runat="server" AutoPostBack="true" onselectedindexchanged="drpTemplateType_SelectedIndexChanged">
</asp:DropDownList>
.cs代码:
drpTemplateType.DataBind(typeof(EnumCMSTemplateType));
2.Repeater
asp.net页面:
<asp:Repeater runat="server" ID="rptStuaus"> <ItemTemplate> <li value=‘<%#Eval("EnumValue") %>‘><a><%#Eval("EnumDisplayText") %></a><> </ItemTemplate> </asp:Repeater>
rptStuaus.DataSource = ALEnumDescription.GetFieldTexts(typeof(CRMRequirementEnum)).Where(d => d.EnumValue != (int)CRMRequirementEnum.HasEded && d.EnumValue != (int)CRMRequirementEnum.HasCompleted); ; rptStuaus.DataBind();
标签:tab cms data repeater htm exchange sel value splay
原文地址:http://www.cnblogs.com/bwlluck/p/6069084.html