Re: ASP.net architecture issue

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 00:12:03 -0400


"kw" <elitecommerceserver@hotmail.com> wrote in message
news:uF9hqCOaEHA.4048@TK2MSFTNGP10.phx.gbl...
> I've developed about a dozen sites with ASP.net and never had much
> trouble...until now.
>
> What I wanted to do with the new web app was create a single page with a
> treenode collection that would dynamically load content into a
placeholder.
>
> I ran into two showstoppers:
>
> 1)"The control tree into which viewstate is being loaded must match the
> control tree"... Meaning that you can't navigate between nodes without an
> error because the dynamic controls loaded in one node do not match the new
> node.
>
> 2) A treenode loads content which contains an IE Tabstrip/MultiPage which
> contains one or more IE Tabstrip/MultiPage's. The innermost MultiPage
> controls do not fire events, no matter what you do.
>
> Has anyone else discovered these flaws in ASP? Were you able to come up
> with a workaround? If you ditched the architecture, what did you come up
> with?

Make sure that you load the same controls in the same order on every
request. That's the only way you'll get ViewState and events to work
correctly.

-- 
John Saunders
johnwsaundersiii at hotmail


Relevant Pages

  • Re: Dynamic Controls on a Multi-Step Form
    ... if you have a fixed set of controls then avoid using dynamically added ... > in order for them to be properly filled with the appropriate ViewState. ... > Each panel contains a table which is filled with various radio buttons, ... > wasteful to be building all three panels every time I load the page even ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Usage of AppDomain.CreateInstanceFromAndUnwrap method
    ... The reason for other failures is that Controls are not inherited from ... so the program will attempt to load them into the ... Create an AppDomain, do a CreateInstanceAndUnwrap on ... Assemblies in to a seprate ...
    (microsoft.public.dotnet.framework.clr)
  • Re: The Command event of dynamically loaded controls
    ... to load a hierarchical list of folders and files from a database and display ... I'll need to load the folder list in the first pass to wire up the ... controls and corresponding event handlers. ... > and triggers events. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Form Performance
    ... can take a lot of time to load. ... it is not the number of controls. ... So, combo box controls, and sub-form controls are very expensive in terms ... > that tab. ...
    (microsoft.public.access.modulesdaovba)
  • RE: Better multiple forms or.....?
    ... Keep in mind that default behavior is for a form to load all controls on it ... also be possible to use this approach with panels or a tab control. ... is running that could consume significant memory. ...
    (microsoft.public.dotnet.framework.compactframework)