Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Loosing Datagrid events due to container naming corruption problems...Help

Reply
Thread Tools

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

 
 
cmoore
Guest
Posts: n/a
 
      09-11-2003
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") "LineItemsataGridItems:_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") "4ataGridItems:_ctl3:Linkbutton2"


-- Normal control tree
LineItems ASP.WorkLineItems_ascx 3799 44
LineItems:_ctl0 System.Web.UI.LiteralControl 67 0
LineItemsataGridItems System.Web.UI.WebControls.DataGrid 3549 188
LineItemsataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3549 0
LineItemsataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
LineItemsataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
LineItemsataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
LineItemsataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
LineItemsataGridItems:_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
4ataGridItems System.Web.UI.WebControls.DataGrid 3482 188
4ataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3482 0
4ataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
4ataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
4ataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
4ataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
4ataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18 0
4ataGridItems:_ctl2:_ctl1 System.Web.UI.WebControls.TableCell 15 0
4ataGridItems:_ctl2:_ctl2 System.Web.UI.WebControls.TableCell 20 0
4ataGridItems:_ctl2:_ctl3 System.Web.UI.WebControls.TableCell 19 0
4ataGridItems:_ctl2:_ctl4 System.Web.UI.WebControls.TableCell 12 0
4ataGridItems:_ctl2:_ctl5 System.Web.UI.WebControls.TableCell 19 0
4ataGridItems:_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..


 
Reply With Quote
 
 
 
 
Felix Wu [MSFT]
Guest
Posts: n/a
 
      09-11-2003
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" <(E-Mail Removed)>
>From: "cmoore" <(E-Mail Removed)>
>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$(E-Mail Removed)>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingc ontrols
>NNTP-Posting-Host: webmail.villagemall.com.au 203.46.134.250
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet.buildingc ontrols:7305
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingc ontrols
>
>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") "LineItemsataGridItems:_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") "4ataGridItems:_ctl3:Linkbutton2"
>
>
>-- Normal control tree
>LineItems ASP.WorkLineItems_ascx 3799 44
>LineItems:_ctl0 System.Web.UI.LiteralControl 67 0
>LineItemsataGridItems System.Web.UI.WebControls.DataGrid 3549 188
>LineItemsataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3549

0
>LineItemsataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
>LineItemsataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
>LineItemsataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
>LineItemsataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
>LineItemsataGridItems:_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
>4ataGridItems System.Web.UI.WebControls.DataGrid 3482 188
>4ataGridItems:_ctl0 System.Web.UI.WebControls.DataGridTable 3482 0
>4ataGridItems:_ctl1 System.Web.UI.WebControls.DataGridItem 0 0
>4ataGridItems:_ctl1:_ctl1 System.Web.UI.WebControls.TableCell 0 0
>4ataGridItems:_ctl1:_ctl0 System.Web.UI.WebControls.Label 0 0
>4ataGridItems:_ctl2 System.Web.UI.WebControls.DataGridItem 215 0
>4ataGridItems:_ctl2:_ctl0 System.Web.UI.WebControls.TableCell 18 0
>4ataGridItems:_ctl2:_ctl1 System.Web.UI.WebControls.TableCell 15 0
>4ataGridItems:_ctl2:_ctl2 System.Web.UI.WebControls.TableCell 20 0
>4ataGridItems:_ctl2:_ctl3 System.Web.UI.WebControls.TableCell 19 0
>4ataGridItems:_ctl2:_ctl4 System.Web.UI.WebControls.TableCell 12 0
>4ataGridItems:_ctl2:_ctl5 System.Web.UI.WebControls.TableCell 19 0
>4ataGridItems:_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..
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
winclicker.rb:232 segmentation fault due to data corruption Robert Wiley Ruby 0 12-07-2010 08:20 PM
core due to memory corruption deepak C Programming 4 10-09-2010 08:31 AM
AGS+ boot hang due to memory corruption? Speedyj Cisco 3 07-11-2008 01:42 PM
How to due with "warning LNK4075: ignoring '/INCREMENTAL' due to Fresh C++ 2 04-22-2008 09:03 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM



Advertisments