Page with multiple web user controls



Hello aspnet experts!

I have a design question for the more experienced developers (more than
me at least :-)).

1) I have a page in the application I'm building that displays a web
user control with a list of folders (let's call it the TREE)

2) There is another control called document list which shows the list
of documents for the selected tree folder (let's call it DOCLIST)

3) When a user clicks on a folder in TREE, the event handler for TREE
updates the DOCLIST control so it will display the list of documents in
that folder.

4) There is a third control that controls the user actions on the tree
structure (let's call that one TREECONTROLS)

5) When the user click on the TREECONTROLS, in its event handler, I am
removing DOCLIST from the page, then loading another control that deals
with the selected folder's properties (let's call it FOLDERPROPERTIES)

Everything great so far!

Now while FOLDERPROPERTIES is being displayed, the user may click on
TREE again, which will cause DOCLIST once again to show up. Since
DOCLIST does not exist, I create it again and display it from inside
the event handler.

Because it was not instantiated in Page_Load, DOCLIST this time does
not behave exactly as if it had been instantiated previously in
Page_Load obviously.

This is my design question to you:

What is the recommended way to go about this? I foresee a few more
controls that will appear and disappear in response to user actions.
I'm not sure whether to do a Response.Redirect back to the same page
passing some parameters (from the event handler method), or whether to
load all the controls on every Page_Load event and keep them hidden,
displaying them only when necessary.

I don't think there is the need to post code at this moment since it's
more of a design question.

Any ideas / suggestions are very welcome!

Thanks all!

webO

.



Relevant Pages

  • Re: Page with multiple web user controls
    ... There is another control called document list which shows the list ... of documents for the selected tree folder ... When a user clicks on a folder in TREE, the event handler for TREE ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dire TreeView performance in .Net 2.0 vs 1.1
    ... I did give this control a quick look. ... perspective rather than the particular way I use the tree. ... secs (with BeginUpdate and updating .Text) ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Ref leaks
    ... Inspector in Inspectors.NewInspector, set up a handler for Closeand use ... adding a Custom Form Region to the reading pane and to ... control and create a sink object for its ... I've had a chance to remove my event handler. ...
    (microsoft.public.outlook.program_addins)
  • Re: Development environment best practices?
    ... > instructor to convey all the subtle issues) You do NOT need to control the ... > entire OS build tree. ... > include the WINCEROOT tree and QFES as part of your version control. ...
    (microsoft.public.windowsce.platbuilder)
  • RE: DST update for Exchange 2003 and Outlook 2003
    ... When you use the Roaming Profile and Folder ... Click Services tab and select Hide All Microsoft Services and Disable ... CREATOR OWNER: Full Control ... Open Windows explorer, navigate to ...
    (microsoft.public.exchange.admin)

Loading