我目前有一个ListView用于输入信用卡详细信息(您可以输入多张信用卡):
<asp:ListView ID="CreditCardListView" class="block" SortExpression="DataType" ItemStyle-Wrap="false" runat="server">
<ItemTemplate >
<table>
<tr>
<asp:TextBox ID="CreditCardNumber" runat="server" class="inline" Text='<%# Eval("AuthorName") %>'></asp:TextBox>
<asp:TextBox ID="VerificationCode" runat="server" class="inline" Text='<%# Eval("AuthorName1") %>'></asp:TextBox>
<asp:DropDownList ID="DdlMonth" class="inline" Width="50px" Font-Names="Andalus" CssClass="ddl input-header" runat="server">
<asp:ListItem Enabled="true" Text="1" Value="1"></asp:ListItem>
<asp:ListItem Enabled="true" Text="2" Value="2"></asp:ListItem>
</asp:DropDownList>
</tr>
</table>
</ItemTemplate>
cuestion是,有没有办法在后面的代码中设置DropDownList(DdlMonth)?
提前致谢。