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.0Two view controls in module?Two view controls in module?
Previous
 
Next
New Post
10/22/2007 6:53 AM
 

I'm trying to have two view controls on my module, but I can't seem to be able to call the second one from the first one, it just goes to an empty page.

In my .dnn file I set the 2 controls as follows:

            <control>
              <src>DesktopModules/NewsML/ViewNewsML.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>ViewDetails</key>
              <title>View Details</title>
              <src>DesktopModules/NewsML/ViewNewsDetailML.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>

And to call it from the first control I'm using:

<asp:HyperLink ID="HyperLink2" NavigateUrl='<%# NavigateURL(portalSettings.ActiveTab.TabID,"ViewDetails","itemID=" & DataBinder.Eval(Container.DataItem,"ItemID")) %>' runat="server">Details</asp:HyperLink>

What am I doing wrong?

 
New Post
10/22/2007 7:21 AM
 

I've managed to do it, but now when opening the ViewDetails control the site is showing the admin skin, instead of the skin set at the site, it's a view control so I don't know why it shows that skin.

What can I be doing wrong? why is it not showing the proper skin?

 
New Post
10/22/2007 9:45 AM
 

That's by design for a control loaded by DNN(Edit or View) that is not the default control. If you want to keep the skin, you'll need to load the control dynamically from within your module.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
10/22/2007 1:47 PM
 

onishiro wrote

I've managed to do it, but now when opening the ViewDetails control the site is showing the admin skin, instead of the skin set at the site, it's a view control so I don't know why it shows that skin.

What can I be doing wrong? why is it not showing the proper skin?

see:

Module Navigation Options



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/23/2007 6:38 AM
 

Thanks.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Two view controls in module?Two view controls in 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