foreach (RepeaterItem item in dltShiguliebie.Items)
            {
                string shiguleibie = "";
                int siwangrenshu = 0;
                foreach (Control ctl in item.Controls)
                {
                    if (ctl is HtmlInputText)
                    {
                        if (((HtmlInputText)ctl).Value == "")
                        {
                            siwangrenshu = 0;
                        }
                        else
                            siwangrenshu = Convert.ToInt32(((HtmlInputText)ctl).Value);
                        siwangzongshu = siwangrenshu + siwangzongshu;
                    }
                    if (ctl is Label)
                    {
                        shiguleibie = ((Label)ctl).Text;
                    }
                }

 

 

<asp:Repeater ID="dltShiguliebie" runat="server">
            <ItemTemplate>
            <tr>
                <td class="style5">
                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("Shiguleibie")%>'></asp:Label>
                    死亡人数</td>
                <td class="sctdright">
                <input />
                </td>
                </tr>
            </ItemTemplate>
           
            </asp:Repeater>

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2021-11-17
  • 2021-09-01
  • 2022-12-23
  • 2021-06-11
  • 2021-09-18
相关资源
相似解决方案