在 Repeater1 中,<asp:Repeater ID="Repeater1" runat="server">
   <ItemTemplate>
     <%#Eval("UserName") %>
     <asp:TextBox ID="TextBox1" Width="30px" runat="server"></asp:TextBox>
     <asp:CheckBox  ID="CheckBox1" Text="弃权" runat="server" />
   </ItemTemplate>
</asp:Repeater><asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交投票" />------------------------------------------------
以上代码我要实现的功能如下图所示:-----------------------------------------------
我想实现的是,1.当点击了 CheckBox1 (弃权) 时,如果它的状态 Checked="false" 时,则让 TextBox1 (分数)变为灰色,同时为TextBox1 赋值为“弃权”,否则就让 TextBox1为正常可输入状态。2.当最后,用户点击了 Button1 进行提交时,则让程序循环判断哪一条数据的  CheckBox1 的Checked="true" ,然后,弹出一个confirm确认对话,告诉用户,“第1,3,6,7,9 条岗位现在为弃权状态,你确认提交吗?”-----------------------------------------以上效果,最好能采用 javascript 方式实现,因为我不想让程序回发,有请各位大哥出手帮忙,我弄了很长时间一直没有弄明白,多谢各位了!