【发布时间】:2012-05-01 18:28:25
【问题描述】:
有什么方法可以向 SelectedIndexChanged 函数发送额外的参数?
<asp:RadioButtonList
ID="rblMeetingPlace"
SelectedValue = '<%# Bind("intMtgLoc") %>'
*OnSelectedIndexChanged = "Validate('txtMeetPlaceOther')"*
runat="server"
RepeatDirection="Horizontal"
>
<asp:ListItem Value="1">Workshop</asp:ListItem>
<asp:ListItem Value="2">Service provider agency</asp:ListItem>
<asp:ListItem Value="3">Advocacy organization</asp:ListItem>
<asp:ListItem Value="4">Public Space</asp:ListItem>
<asp:ListItem Value="5">Other (specify): </asp:ListItem>
<asp:ListItem Value="" Text="" style="display: none" />
</asp:RadioButtonList>
<asp:TextBox ID="txtMeetPlaceOther" Text='<%# Bind("strMtgLocOth") %>'
runat="server" />
我有几个单选按钮列表,我想在选择“其他”时启用文本框。 我正在考虑发送文本框的 id 来启用它。
有什么想法吗?
【问题讨论】:
标签: asp.net parameter-passing selectedindexchanged extra