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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...place contentPane into another runat=server controlplace contentPane into another runat=server control
Previous
 
Next
New Post
9/26/2009 2:33 PM
 

dear skinners,

Can somebody help me with following issues ?

1. Why I cant put content pane into some other runat="server" control ?? I've created skin (if interested please see http://ma.cenia.cz, source for free ;-) ). What I hate is that div that surrounds content pane can't be runat=server. page is splitted to 2 parts (navigation and content) by splitter. splitter is moveable (when client can support ClientAPI.ClientFunctionality.Positioning. splitter must be able to position change on server. but as content pane cant be placed in another runat=server control I must set its position like this: style="left:<%= SplitterPosition %>px;" (uaaa UGLY old asp code&design mix!!!).

2. is there any way how to keep user splitter position exceptof use cookies ? treeView serves site tree hyperlink as window.navigate(anotherTabUrl) ? I will loose postback = lost user adjust of splitter pos. I hate cookies way, because not everybody enables cookies....

thanx for hints

Adam

 
New Post
9/28/2009 10:02 AM
 

Any HTML element with runat="server" is a pane in DNN, and you cannot nest panes.

You can write the split vlaue to the page as a varialbe you use in javascript and move the splitter client side.

 
New Post
9/29/2009 1:53 AM
 

there was a post about thsi here

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/160/postid/303497/scope/posts/Default.aspx

I havent tried it yet because i could solve in another way but its on my planning to test again

 

 
New Post
9/29/2009 2:00 AM
 

Timo,

U are not right. look at my site and see navigation tree which is dnnTreeView control. This treeView is normaly "nested" like this:

<asp:Panel runat="server" id="naviArea" CssClass="naviArea">
  <div class="ma21cprgt" style="position:absolute;bottom:10px;height:25px;padding-left:6px;">
   <dnn:COPYRIGHT runat="server" id="COPYRIGHT" />
  </div>
  <div id="LeftPane" runat="server" class="TreeViewMenu_Body">
  <dnn:TREEVIEW runat="server" id="dnnTREEVIEW"
    level="root"
    nowrap="true"
    TreeIndentWidth="3"
    IncludeHeader="False"
    ForceDownLevel="True"

...

and it works perfectly. I guess that ASP.NET 2.0 allows element nesting with runat=server normally as I read MSDN...

only problem I have is ContentPane element which causes site error (not replace my skin with noSkin skin).

Adam

 
New Post
9/29/2009 7:42 AM
 

Adam, you'r wrong; I am right ;-)

I wrote: "Any HTML element with runat="server"

The treeview is not an HTML element it's a user control, so I meant any regular HTML element, not being a user control or skin object.

Normally your <div id="LeftPane" runat="server" class="TreeViewMenu_Body"> should show up as a pane in the control panel..

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...place contentPane into another runat=server controlplace contentPane into another runat=server 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