摘要: 如何为gridview控件里的“删除”列添加一个确认对话框?网上众说纷纭,大致见到了三种解决方案,现归纳如下: 1、继承Web.IO里的button控件,为其实现一个IPostback的接口用于回调,具体代码之复杂,只有作者自己想体会吧…… 2、在gridview... 阅读全文
posted @ 2008-10-15 13:29 UouHt 阅读(381) 评论(0) 推荐(0) 编辑
摘要: nti.Ntid = int.Parse(gvNewsType.DataKeys[e.RowIndex].Values[0].ToString()); nti.Title = ((TextBox)gvNewsType.Rows[e.RowIndex].FindControl("tbTitle")).Text; nti.Allow = int.Parse(((RadioButtonList)g... 阅读全文
posted @ 2008-10-15 10:44 UouHt 阅读(309) 评论(0) 推荐(0) 编辑