锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩在线另类,亚洲精品乱码久久久久久黑人,久久久久久久久久码影片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 鍙戣〃璇勮
]]>
亚洲精品99久久久久中文字幕| 精品久久777| 77777亚洲午夜久久多喷| 久久亚洲私人国产精品vA| 久久久中文字幕| 伊人久久国产免费观看视频| 国产麻豆精品久久一二三| 色婷婷久久久SWAG精品| 波多野结衣中文字幕久久| 伊人色综合九久久天天蜜桃| 99久久精品无码一区二区毛片 | 久久综合综合久久综合| 色播久久人人爽人人爽人人片aV| 99久久精品毛片免费播放| 国产精品久久久久久五月尺| 国产精品VIDEOSSEX久久发布| 麻豆亚洲AV永久无码精品久久| 日韩欧美亚洲国产精品字幕久久久| 久久777国产线看观看精品| 亚洲国产另类久久久精品黑人| 久久99九九国产免费看小说| 亚洲国产成人精品久久久国产成人一区二区三区综 | 99久久综合国产精品免费| 久久久无码精品午夜| 国产—久久香蕉国产线看观看| 日韩精品国产自在久久现线拍| 国产精品久久一区二区三区| 久久国产亚洲高清观看| 精品久久久久香蕉网| 91精品国产高清91久久久久久| 久久久久亚洲精品天堂| 久久99精品久久久久久动态图| 久久亚洲AV成人出白浆无码国产| 无码精品久久久久久人妻中字| 色婷婷综合久久久久中文 | 亚洲精品无码久久久久| 99久久99久久精品国产片果冻| 乱亲女H秽乱长久久久| 丁香狠狠色婷婷久久综合| 天天综合久久久网| 久久久久久青草大香综合精品|