• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Welcome to 陳俊峰's ---BeetleHeaded Man Blog !

              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
              58 隨筆 :: 32 文章 :: 18 評論 :: 0 Trackbacks

            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

            posted on 2006-04-12 13:20 Jeff-Chen 閱讀(571) 評論(0)  編輯 收藏 引用 所屬分類: .NET
            国产激情久久久久影院小草| 久久婷婷国产麻豆91天堂| 99久久精品免费看国产免费| 超级碰久久免费公开视频| 亚洲天堂久久精品| 一本综合久久国产二区| 精品久久久久久久久久久久久久久| 丁香色欲久久久久久综合网| 欧美久久一区二区三区| 欧美综合天天夜夜久久| 久久九九兔免费精品6| 伊人久久大香线蕉精品不卡| 久久w5ww成w人免费| 久久国产精品77777| 色狠狠久久综合网| 狠狠久久综合伊人不卡| 久久久av波多野一区二区| 国产综合免费精品久久久| 国产婷婷成人久久Av免费高清 | Xx性欧美肥妇精品久久久久久| 欧美一级久久久久久久大| 久久久久久久综合日本亚洲 | 久久国产三级无码一区二区| 狠狠色丁香久久综合五月| 亚洲人成伊人成综合网久久久| 国产精品午夜久久| a级成人毛片久久| 久久久久99精品成人片牛牛影视| 久久久久久九九99精品| 久久只有这精品99| 久久精品亚洲福利| 久久久久亚洲爆乳少妇无 | 亚洲成色www久久网站夜月| 亚洲精品乱码久久久久久蜜桃不卡| 久久www免费人成看国产片| 久久亚洲欧美日本精品| 女人香蕉久久**毛片精品| 久久青青草原国产精品免费| 久久国产精品久久久| 国产精品美女久久久久AV福利| 99久久这里只有精品|