提示字符串输入的格式不正确?asp.net

喜欢吃醋的蔡先生 喜欢吃醋的蔡先生 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
protected void GV_RowDeleting(object sender, GridViewDeleteEventArgs e) { int id = int.Parse(GV.Rows[e.RowIndex].Cells[0].Text); if (infoBll.getinfobll().DeleteID(tm)) { Response.Write("<script>alert('删除成功!')</script>"); GV.DataSource = infoBll.getinfobll().SelectName(); GV.DataBind(); } } <div> <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" OnRowDataBound="GV_RowDataBound" OnRowDeleting="GV_RowDeleting" > <Columns> <asp:BoundField DataField="TaskID" HeaderText="任务编号" Visible="false" /> <asp:CommandField EditText="删除" HeaderText="操作" ShowDeleteButton="True" /> </Columns> </asp:GridView> 如果我把Visible=“false”给删了,程序就能正常运行,但是要求ID是隐藏的,所以这个问题不清楚该如何解决,求大佬指点!
...全文
评论 7
收藏 已收藏
分享
返回顶部
喜欢吃醋的蔡先生
.NET社区 62,275 成员 668,967 内容