我在列表中显示了复选框,我想访问已选中的复选框,并想要调用控制器操作,其中我从下拉列表中选择选项。
<div id="pnlSent" style="display: none">
<%= Html.DropDownList("select","msgtype") %>
<% foreach (Usp_GetUserMessagesResult w in (List<Usp_GetUserMessagesResult>)ViewData["UListM"])
{ %>
<li>
<div class="question-info">
<input id="Checkbox1" type="checkbox" onclick="function() { alert("df") ; } " />
<div class="views count"><span></span></div>
<div class="question">
<div class="meta">Subject: <%= w.Subject %></div>
<div class="meta">To: <%= w.Username %></div>
<h3 class="title"><%= Html.Encode(w.Mesg)%></h3>
</div>
</div>
</li>
<% } %>
</div>