|
<p>请高手帮下:asp.net问题</p>
<p><img src="http://img.baidu.com/img/iknow/icn_point.gif"> 悬赏分:10 -</p>
<p>解决时间:2010-5-27 11:35</p>
<p>下面这段代码是点击GRIDVIEW控件的什么地方然后才输入下面的代码的.</p>
<p>protected void gvExaminationInfo_RowDeleting(object sender, GridViewDeleteEventArgs e)</p>
<p>{</p>
<p>int id = (int)gvExaminationInfo.DataKeys[e.RowIndex].Value;</p>
<p>string sql = "delete from tb_test where ID=" + id;</p>
<p>BaseClass.OperateData(sql);</p>
<p>string strsql = "select * from tb_test order by ID desc";</p>
<p>BaseClass.BindDG(gvExaminationInfo, "ID", strsql, "ExaminationInfo");</p>
<p>}</p>
<p>提问者: haihuizhang - 三级</p>
<p>最佳答案</p>
<p>视图下右击Gridview 属性。在事件里(闪电标志的)。找到相关的双击!</p>
<p>0</p>
<p>回答者:</p>
<p><img src="http://hiphotos.baidu.com/beckybibu/pic/item/4234f3dfc52db26395ee3724.jpg"></p>
<p>nature_126 - 四级 2010-5-27 11:31</p>
<p>我来评论>></p>
<p>提问者对于答案的评价:</p>
<p>找到了,谢谢.</p>
|
|