• <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 閱讀(581) 評論(0)  編輯 收藏 引用 所屬分類: .NET
            久久人人爽人人爽人人av东京热| 久久久久亚洲精品男人的天堂| 国产美女亚洲精品久久久综合| 久久精品国产一区二区三区日韩| 伊人色综合久久天天网| 香蕉久久夜色精品国产小说| 99久久精品免费看国产一区二区三区| 综合久久精品色| 久久精品午夜一区二区福利| 一本久久精品一区二区| 精品久久人妻av中文字幕| 久久久亚洲AV波多野结衣| 波多野结衣中文字幕久久 | 丁香久久婷婷国产午夜视频| 亚洲色大成网站WWW久久九九| 亚洲国产二区三区久久| 日韩AV无码久久一区二区| 国产精品成人久久久| 人人狠狠综合久久亚洲高清| A级毛片无码久久精品免费| 伊人色综合久久天天网| 久久精品中文字幕有码| 久久精品女人天堂AV麻| 国内精品久久久久久久97牛牛| 久久久久一本毛久久久| 久久综合久久久| 久久噜噜久久久精品66| 国产精品久久久久…| 精品久久一区二区| 99久久人妻无码精品系列| 久久久久久国产精品美女| 亚洲国产婷婷香蕉久久久久久| 国产精品激情综合久久| 国产精品久久久久久福利漫画| 久久精品国产精品亚洲毛片 | 国产精品久久久久天天影视| 亚洲乱码精品久久久久..| 久久精品男人影院| 国产精品久久久久AV福利动漫| 亚洲午夜久久久久久久久电影网| 国产成人精品综合久久久|