• <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
            久久婷婷五月综合色奶水99啪| 久久亚洲精品无码AV红樱桃| 精品久久久久香蕉网| 国产精品久久国产精品99盘 | 老司机午夜网站国内精品久久久久久久久 | 国产精品女同一区二区久久| 青青草原综合久久大伊人| 99久久国产热无码精品免费| 国产精品99久久久久久宅男 | 亚洲国产精品一区二区久久hs| 欧美久久精品一级c片片| 中文成人久久久久影院免费观看 | 久久SE精品一区二区| 久久久久人妻一区精品果冻| 久久久久久亚洲Av无码精品专口 | 久久伊人中文无码| 99久久精品午夜一区二区| 亚洲国产成人久久综合一区77| 日韩久久久久久中文人妻| 久久久艹| 一本大道久久a久久精品综合| 久久久久久夜精品精品免费啦| 久久毛片免费看一区二区三区| 狠狠色丁香久久综合婷婷| AV无码久久久久不卡网站下载 | 久久不见久久见免费影院www日本| 精品国产福利久久久| 亚洲人成网亚洲欧洲无码久久 | 香蕉久久永久视频| 欧美一级久久久久久久大片| 欧洲人妻丰满av无码久久不卡| 亚洲人成无码网站久久99热国产 | 国产精品青草久久久久福利99| 99久久成人国产精品免费| 久久成人国产精品| 久久国产色AV免费观看| 国产精品久久久久AV福利动漫| 久久99精品国产自在现线小黄鸭 | 久久天天躁狠狠躁夜夜av浪潮 | 91精品婷婷国产综合久久| 久久电影网2021|