锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久99热只有频精品8,2020久久精品亚洲热综合一本,三级三级久久三级久久http://m.shnenglu.com/Jeff-Chen/category/1403.htmlzh-cnSun, 25 May 2008 23:26:42 GMTSun, 25 May 2008 23:26:42 GMT60A Bug of .Net I Experienced ---- GridView RowEdit/RowDelete/RowUpdate... http://m.shnenglu.com/Jeff-Chen/articles/5384.htmlJeff-ChenJeff-ChenWed, 12 Apr 2006 05:20:00 GMThttp://m.shnenglu.com/Jeff-Chen/articles/5384.htmlhttp://m.shnenglu.com/Jeff-Chen/comments/5384.htmlhttp://m.shnenglu.com/Jeff-Chen/articles/5384.html#Feedback0http://m.shnenglu.com/Jeff-Chen/comments/commentRss/5384.htmlhttp://m.shnenglu.com/Jeff-Chen/services/trackbacks/5384.html Part 1 :Qusetion Details:(that's not really i wrote,i just quote a same sample as my encountered)聽

have a gridview and the GridView_RowEditing event is firing twice when I click the edit button and the GridView_RowDeleting event is firing twice on a single delete.聽 I don't think there's anything that I'm doing in my code that would cause this, but I'm including the code for the two events.聽 Has anyone encountered this problem?

Here's the code for RowEditing:
<code>
Protected Sub gv_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles gv.RowEditing
聽聽聽聽聽聽聽 gv.Columns(columnIndex.Delete).Visible = True
聽聽聽聽聽聽聽 gv.Columns(columnIndex.Id).Visible = False
聽聽聽聽聽聽聽 gv.EditIndex = e.NewEditIndex
聽聽聽 End Sub
</code>

And here's the code for RowDeleting:
<code>
Protected Sub gv_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles gv.RowDeleting
聽聽聽聽聽聽聽 e.Cancel = True
聽聽聽聽聽聽聽 Dim lblFName As Label
聽聽聽聽聽聽聽 lblFName= CType(gv.Rows(gv.EditIndex).FindControl("lblFName"), Label)
聽聽聽聽聽聽聽 Dim lblLName As Label
聽聽聽聽聽聽聽 lblLName= CType(gv.Rows(gv.EditIndex).FindControl("lblLName"), Label)

聽聽聽聽聽聽聽 myObject.myClass.DeleteTemp(CType(lblBookletNum.Text, Integer), lblCare.Text)
聽聽聽聽聽聽聽 gvTempVisits.EditIndex = -1
聽聽聽 End Sub
</code>

Part 2 : A Reply From Someone

verify if in the declarative code of your GridView control are set the OnRowDeleting and OnRowEditing attributes. If so, remove either this attributes or the Handles clauses of your handler events.

I mean if your gridview is declared as follows:

[...]
聽聽聽<asp:GridView id="gv" runat="Server" OnRowDeleting="gv_RowDeleting" OnRowEditing="gv_RowEditing"
>
聽聽聽聽聽聽[...]
聽聽聽</asp:GridView>
[...]

And in your methods to handle the events are as follows:

[...]
聽聽聽Protected Sub gv_RowDeleting(............)
Handles gv.RowDeleting
聽聽聽聽聽聽[...]
聽聽聽End Sub
[...]

This events will be called twice.


Part 3: A聽Great Discussion about it聽 i found !

http://www.issociate.de/board/post/285047/help_please_on_GridView_commands_+_AutoEventWireUp



Jeff-Chen 2006-04-12 13:20 鍙戣〃璇勮
]]>
亚洲精品乱码久久久久久中文字幕| 久久婷婷综合中文字幕| 亚洲国产精品成人AV无码久久综合影院 | 久久婷婷五月综合国产尤物app | 国内精品久久久久久99蜜桃 | 久久综合色老色| 久久久国产精华液| 久久精品成人免费网站| 色综合久久天天综合| 久久综合亚洲色HEZYO社区| 久久精品国产亚洲AV香蕉| 久久精品二区| 久久精品人人做人人爽97| 午夜精品久久影院蜜桃| 久久久精品午夜免费不卡| 亚洲人成无码www久久久| 精品国产91久久久久久久| 国产成人精品久久| 久久婷婷五月综合色99啪ak| 99久久精品国产高清一区二区| 久久本道久久综合伊人| 精品久久久一二三区| 国产日产久久高清欧美一区| 久久久一本精品99久久精品88| 久久激情五月丁香伊人| 精品无码久久久久国产| 久久精品中文字幕一区| 久久午夜福利电影| 伊人热人久久中文字幕| 久久这里只精品国产99热| 久久亚洲AV成人无码国产| 亚洲国产成人久久精品99 | 中文字幕久久亚洲一区| 国产成人精品久久免费动漫| 久久久久久国产精品无码超碰| 久久夜色精品国产www| 国产国产成人久久精品| 色综合久久最新中文字幕| 久久久老熟女一区二区三区| 欧美熟妇另类久久久久久不卡| 日韩精品久久久久久久电影蜜臀 |