我有类似的东西:
<asp:ListView ID="lvList" runat="server">
<LayoutTemplate>
<select id="select_list">
<option value="-1">
select one
</option>
<asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
</select>
</LayoutTemplate>
<ItemTemplate>
<option value="<%# Eval("code") %>">
<%# Eval("Name") %>
</option>
</ItemTemplate>
</asp:ListView>
而且我想select_list
在提交按钮后在服务器端访问..我尝试了FindControl("select_list")
,, lvList.FindControl("select_list")
-Request.Form["select_list"]
他们都没有给我控制权..
有没有办法通过它的 id 来获得控制权,就像 JS 一样getElementByID
?
谢谢。