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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using NavigateURL to get to another controlUsing NavigateURL to get to another control
Previous
 
Next
New Post
2/17/2011 5:02 PM
 
I have set up an initial control in my module that has links in it to other controls in the same module.  I  have added the following entries in my manifest file for my module definitions:
<moduleDefinitions>
              <moduleDefinition>
                <friendlyName>MyModule</friendlyName>
                <defaultCacheTime>0</defaultCacheTime>
                <moduleControls>
                  <moduleControl>
                    <controlKey />
                    <controlSrc>DesktopModules/MyModule/View.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>Dashboard</controlTitle>
                    <controlType>View</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>UpdateInfo</controlKey>
                    <controlSrc>DesktopModules/MyModule/UpdateInfo.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>UpdateInfo</controlTitle>
                    <controlType>View</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Edit</controlKey>
                    <controlSrc>DesktopModules/MyModule/Edit.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>Edit Content</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Settings</controlKey>
                    <controlSrc>DesktopModules/MyModule/Settings.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>Settings</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                </moduleControls>
              </moduleDefinition>
            </moduleDefinitions>

In my View control I have some links for which I used a asp link button control.
<asp:linkbutton cssclass="CommandButton" id="btn_Info" resourcekey="btnInfo" runat="server" borderstyle="none" text="Update Information" causesvalidation="False"></asp:linkbutton>&nbsp;

In my code behind page I have the following sub routine:
Private Sub btnInfo(ByVal sender As Object, ByVal e As EventArgs) Handles btn_Info.Click
        Try
            Response.Redirect(NavigateURL(PortalSettings.ActiveTab.TabID, "UpdateInfo"), True)
        Catch exc As Exception    'Module failed to load
            ProcessModuleLoadException(Me, exc)
        End Try
    End Sub

I  built and installed the module in my development environment successfully and placed the control on a page by itself. The initial page with the menu on it displays correctly and when I click on the link the address in the url changes to http://dnndev/MyModule/tabid/62/ctl/UpdateInfo/default.aspx but the module is not displayed on the screen. I am logged in as the SuperUser for testing and the view settings for the module is for all users.

What Did I Miss?
 
New Post
2/18/2011 8:08 AM
 
There are a number of reasons for not trying to go down this path.  One of the main being that dnn will try to render any such edit type modules using the Edit Skin layout format.

I would suggest that you look at using a dynamic loader approach handled inside your base module, which you control by simple parameter passing with url redirects.

Alternatively, you could put all your functionality in a single module with <panel> switching to display the required information.

Westa
 
New Post
2/18/2011 8:17 AM
 
Thanks.  I'll give the panel approach a try.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using NavigateURL to get to another controlUsing NavigateURL to get to another control


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