Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Loading multiple user controls into a single moduleLoading multiple user controls into a single module
Previous
 
Next
New Post
3/9/2007 6:34 AM
 

Hi,

I have want to design module with two panes. The pane on the left will have a Tree control. And by clicking on a specific tree node, the respective user control will be laoded dynamically into the right pane. Also, on selecting another node the previous node should be unloaded & the user control respective to the selected tree node should be displayed.

Now the display would be in view mode (readonly) & we can change the displayed details of the user control by clicking the edit button to make the user control in editable & after changing the values the records for the respective user control will be saved into the database.

Now the problem is how to display the different user controls in editable mode using the DNN's 'EDIT' feature of a module becuase we have more than one user control displayed dynamically.

Please suggest some solution.

Thanks,

-AP

 

 

 

 
New Post
3/11/2007 5:18 PM
 
[quote]
Now the problem is how to display the different user controls in editable mode using the DNN's 'EDIT' feature of a module becuase we have more than one user control displayed dynamically.
[/quote]

Hello,
Set the Control type to "View", Control Key to ""
In your Control (the view control), create panes, and add the control you want to use as Edit Control in diff pane.
when the use select an edit, make the pane u want the user to see to enable.
you can also check is the user is login in or is authorized to edit that module. (IsEditable...)

For advance use, u can make each edit control an web control, so that u can easily manage your code...

chipset Arowolo
 
New Post
3/14/2007 3:33 PM
 
to display multiple view control in one module check this link: http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/110/threadid/46342/threadpage/2/scope/posts/Default.aspx

to display multiple edit control in one module, do something like this:
- in .dnn file, for each edit control set <key>EditSome</key>,
<key>AddSome</key> ...
- in view control code behind file, when you register ModuleActionCollection set:                       
    Actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.AddContent,       this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl("AddSome"), false, SecurityAccessLevel.Edit, true, false);
    Actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.EditContent, this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl("EditSome"), false, SecurityAccessLevel.Edit, true, false);

Hope this helps,
regards
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Loading multiple user controls into a single moduleLoading multiple user controls into a single module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out