如何在转发器中访问dropdownlist选择的值 [英] How to access dropdownlist selected value inside a repeater
本文介绍了如何在转发器中访问dropdownlist选择的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:Repeater ID="RepterDetails" runat="server"
onitemcommand="RepterDetails_ItemCommand" OnItemDataBound="Repeater1_ItemDataBound">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<table cellspacing="0" cellpadding="0" bgcolor="#e6e5e5"; style="width: 650px">
<tr>
<td width="150" align="left" valign="middle"><asp:Label ID="lbl_marital" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "maritalstatus")%>' Font-Bold="true"></asp:Label>
<asp:DropDownList ID="marital" runat="server" class="feedback_textfield" Visible ="False" AutoPostBack="true" >
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>unmarried</asp:ListItem>
<asp:ListItem>married</asp:ListItem></asp:DropDownList></td>
,我需要看一些文本框..
after selecting dropdownlist value, i need to visible some textboxes..
<tr>
<td width="93" align="left" valign="middle"><asp:Label ID="lblwife" runat="server" Text="Wife Name" ></asp:Label></td>
<td width="12" align="center" valign="middle"><asp:Label ID="Label2" runat="server" Text=":" ></asp:Label></td>
<td width="150" align="left" valign="middle"><asp:Label ID="lbl_wife" runat="server" Text='<%# Bind("wifename")%>' Font-Bold="true"></asp:Label>
<asp:TextBox ID="txtwife" runat="server" class="feedback_textfield" Text='<%# Bind("wifename")%>' Visible="false"></asp:TextBox></td>
</tr>
在转发器内部,我无法使用下拉列表事件......
怎么做...
请告诉我一些建议......
Inside the repeater, I cant able use dropdownlist events...
How to do that...
Kindly tell me some suggestions...
推荐答案
这篇关于如何在转发器中访问dropdownlist选择的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文