Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic control instantiation
Message
From
23/03/2004 01:21:21
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Dynamic control instantiation
Miscellaneous
Thread ID:
00888749
Message ID:
00888749
Views:
31
Background...

We're using a nested datagrid to display hierarchical order data. Each of the cell elements has an embedded call to a javascript method on the form that captures the datarow's PK and table name in hidden fields, and then calls form.submit() The server checks the hidden fields and dynamically loads a user control displaying the data to match the user's grid selection.

Here's the problem. When double-clicking the grid, the user control never updates with the appropriate data. I've verified that the corresponding data is found and the controls appear to bind correctly (we're using MM.Net, BTW, so I can step through the automated binding and see the TextBox.Text = 'MyData' in the watch window) but when they display, it's not displaying "MyData". It's either blank or it continues to display the default data we're loading on the initial page load.

Here's the really strange part. When the other developer and I were working on this, I added buttons to the form for testing to mimic the grid behavior, because he was doing the grid functionality and I was coding the dynamic control switching. When clicking the buttons, the data displays properly!! Other than the call to the data loading method being in the button_Click vs. the Page_Load, they call the exact same code. I'm left to assume there's something natively different about how the server is responding to the button click vs. the grid ondblclick? I just don't know what that difference is and I haven't found anything that describes this. Can someone explain what we're not seeing? Is there another/better way to do this?

Any help is greatly appreciated. None of us has much hair left to pull out anymore...
---J
Reply
Map
View

Click here to load this message in the networking platform