Loosing Datagrid events due to container naming corruption problems...Help

Discussion in 'ASP .Net Building Controls' started by cmoore, Sep 11, 2003.

  1. cmoore

    cmoore Guest

    While try to find out why sometime events were not being handled
    item_command the following was found:

    -Events, the control is lineitems, and the next line is normal
    request("__EVENTTARGET") "LineItems:DataGridItems:_ctl3:Linkbutton2"

    - When the problem occurs the control tree has been renamed from
    Lineitems->4?
    - which I suspect is why the event is not being handled..

    request("__EVENTTARGET") "4:DataGridItems:_ctl3:Linkbutton2"


    -- Normal control tree
    LineItems ASP.WorkLineItems_ascx 3799 44
    LineItems:_ctl0 System.Web.UI.LiteralControl 67 0
    LineItems:DataGridItems System.Web.UI.WebControls.DataGrid 3549 188
    LineItems:DataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3549 0
    LineItems:DataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
    LineItems:DataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
    LineItems:DataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
    LineItems:DataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
    LineItems:DataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18 0

    -- Broken control tree.. Naming container should be control name Lineitems!
    not 4..
    4 ASP.WorkLineItems_ascx 3724 44
    4:_ctl0 System.Web.UI.LiteralControl 67 0
    4:DataGridItems System.Web.UI.WebControls.DataGrid 3482 188
    4:DataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3482 0
    4:DataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
    4:DataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
    4:DataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
    4:DataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
    4:DataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18 0
    4:DataGridItems:_ctl2:_ctl1 System.Web.UI.WebControls.TableCell 15 0
    4:DataGridItems:_ctl2:_ctl2 System.Web.UI.WebControls.TableCell 20 0
    4:DataGridItems:_ctl2:_ctl3 System.Web.UI.WebControls.TableCell 19 0
    4:DataGridItems:_ctl2:_ctl4 System.Web.UI.WebControls.TableCell 12 0
    4:DataGridItems:_ctl2:_ctl5 System.Web.UI.WebControls.TableCell 19 0
    4:DataGridItems:_ctl2:_ctl6 System.Web.UI.WebControls.TableCell 17 0

    This corruption occurs after handling a datagrid event, sometimes edit,
    sometime cancel..
    Hitting the command button twice seems to fix the naming problem..

    What causes the naming to change and not match the control naming container
    (as above), it looks like it has lost the name and is using the
    "sequentional" number as the control name..

    Anyone know what can cause the naming container to change or any of the
    above..

    Thanks..
     
    cmoore, Sep 11, 2003
    #1
    1. Advertising

  2. Hi Cmoore,

    Is it possible for you to create a demo that can reproduce the behaivor?
    Without this information, it's pretty hard to dig into the problem. You can
    send the samle to me, and I am glad to take a look into it. To get my
    email, just remove "online" from my displayed email.

    Thanks,

    Felix Wu
    =======
    This posting is provided "AS IS" with no warranties, and confers no rights.


    --------------------
    >Reply-To: "cmoore" <>
    >From: "cmoore" <>
    >Subject: Loosing Datagrid events due to container naming corruption

    problems...Help
    >Date: Thu, 11 Sep 2003 10:54:26 +1000
    >Lines: 56
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <e6f2B9$>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    >NNTP-Posting-Host: webmail.villagemall.com.au 203.46.134.250
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl

    microsoft.public.dotnet.framework.aspnet.buildingcontrols:7305
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    >
    >While try to find out why sometime events were not being handled
    >item_command the following was found:
    >
    >-Events, the control is lineitems, and the next line is normal
    >request("__EVENTTARGET") "LineItems:DataGridItems:_ctl3:Linkbutton2"
    >
    >- When the problem occurs the control tree has been renamed from
    >Lineitems->4?
    >- which I suspect is why the event is not being handled..
    >
    >request("__EVENTTARGET") "4:DataGridItems:_ctl3:Linkbutton2"
    >
    >
    >-- Normal control tree
    >LineItems ASP.WorkLineItems_ascx 3799 44
    >LineItems:_ctl0 System.Web.UI.LiteralControl 67 0
    >LineItems:DataGridItems System.Web.UI.WebControls.DataGrid 3549 188
    >LineItems:DataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3549

    0
    >LineItems:DataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
    >LineItems:DataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
    >LineItems:DataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
    >LineItems:DataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
    >LineItems:DataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18

    0
    >
    >-- Broken control tree.. Naming container should be control name

    Lineitems!
    >not 4..
    >4 ASP.WorkLineItems_ascx 3724 44
    >4:_ctl0 System.Web.UI.LiteralControl 67 0
    >4:DataGridItems System.Web.UI.WebControls.DataGrid 3482 188
    >4:DataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3482 0
    >4:DataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
    >4:DataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
    >4:DataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
    >4:DataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
    >4:DataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18 0
    >4:DataGridItems:_ctl2:_ctl1 System.Web.UI.WebControls.TableCell 15 0
    >4:DataGridItems:_ctl2:_ctl2 System.Web.UI.WebControls.TableCell 20 0
    >4:DataGridItems:_ctl2:_ctl3 System.Web.UI.WebControls.TableCell 19 0
    >4:DataGridItems:_ctl2:_ctl4 System.Web.UI.WebControls.TableCell 12 0
    >4:DataGridItems:_ctl2:_ctl5 System.Web.UI.WebControls.TableCell 19 0
    >4:DataGridItems:_ctl2:_ctl6 System.Web.UI.WebControls.TableCell 17 0
    >
    >This corruption occurs after handling a datagrid event, sometimes edit,
    >sometime cancel..
    >Hitting the command button twice seems to fix the naming problem..
    >
    >What causes the naming to change and not match the control naming container
    >(as above), it looks like it has lost the name and is using the
    >"sequentional" number as the control name..
    >
    >Anyone know what can cause the naming container to change or any of the
    >above..
    >
    >Thanks..
    >
    >
    >
     
    Felix Wu [MSFT], Sep 11, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harman
    Replies:
    1
    Views:
    2,547
    Moiristo
    Jul 28, 2006
  2. Fresh
    Replies:
    2
    Views:
    663
    Bo Persson
    Apr 22, 2008
  3. deepak

    core due to memory corruption

    deepak, Oct 8, 2010, in forum: C Programming
    Replies:
    4
    Views:
    379
    Jorgen Grahn
    Oct 9, 2010
  4. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    424
    Chris
    Aug 30, 2005
  5. Robert Wiley
    Replies:
    0
    Views:
    113
    Robert Wiley
    Dec 7, 2010
Loading...

Share This Page