我想要在客户端的每个 HTML 表格行中都有一个删除按钮。如何在表格单元格中放置一个 asp.net 按钮,以便我可以从其 ID 中删除特定行。 foreach (DataRow row in data.Rows) { ID = row["Mem_id"].ToString(); Name = row["Mem_Name"].ToString(); Email = row["Mem_Email"].ToString(); Designation = row["Mem_Designation"].ToString(); Depart = row["Mem_Dept"].ToString(); Phone = row["Mem_Phone"].ToString(); MemType = row["Mem_Type"].ToString(); image = "<img width=100 height=100 src=/imagesz/" + row["Mem_Image"].ToString() + ">"; tbl.Text = tbl.Text + "<tr><td>" + ID + "</td><td>" + Name + "</td><td>" + Email + "</td><td>" + Designation + "</td><td>" + Depart + "</td><td>" + Phone + "</td><td>" + MemType + "</td><td>" + image + "</td><td>I WANT TO ADD ASP.NET DELETE BUTTON HERE</td></tr>"; } }
- 2 回答
- 0 关注
- 190 浏览
添加回答
举报
0/150
提交
取消