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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinsrunat=server without making it into a panerunat=server without making it into a pane
Previous
 
Next
New Post
6/28/2013 6:04 AM
 

Right, but AFAIK he wants to wrap panes inside this, which would make it recursive.

 
New Post
6/28/2013 6:12 AM
 
In this case, I agree - but maybe Roland should explain, whether he needs it.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/28/2013 9:02 AM
 
I don't need it any more, I've created a bunch of it statements with which I created the desired effect. Not very nice/readable, but it works.

Based on a setting I want to have one of the following 2 pieces of html:
(It's nested, but not recursive.)

<% if case=1 %>





<%else%>






<% End If %>


But I quickly learned that even though both pane2 divs can never exist simultaniously, .net thinks there is a diplicate pane2 id.


To set the "class=both" I added a runat=server to #wrapper, but this also turns it into a pane.

It would have been nice if this had worked:


<% if case != 1 Then
wrapper.Attributes.Add("class", "both");
%>

<% End If %>


But that doesn't as dnn_ignore doesn't exist and #wrapper is turned into a pane (which also happens to change it's ID to something like #dnn_ctr684_wrapper, so wrapper.Attributes.Add fails wit a nullpointer exception)

So now I wrote this (working) code:
<% if case = 1 Then %>

<% Else %>

<% End If %>

<% if case != 1 Then %>

<% End If %>


(The actual code is a little more complex and contains 3 if statements and it gets more complex quickly.)
 
New Post
6/28/2013 9:05 AM
 
ARGH WTF. I hate this forum software... Why would it strip all html from my post? It's a forum for module development and I can't post code???

Please allow me some time to calm down and rewrite my post..
 
New Post
6/28/2013 9:19 AM
 
I don't need it any more, I've created a bunch of it statements with which I created the desired effect. Not very nice/readable, but it works.

Based on a setting I want to have one of the following 2 pieces of html:
(It's nested, but not recursive.)

<% If case=1 Then%>

[div]
    [div id=pane1 runat=server/]
[/div]

<% Else %>

[div class=both]
    [div id=pane1 runat=server/]
    [div id=pane2 runat=server/]
[/div]

<% End If %>


But I quickly learned that even though both pane2 divs can never exist simultaniously, .net thinks there is a duplicate pane2 id.


Because I know filing bug-reports at Microsoft is futile, It would have been nice if this had worked:

[div id=wrapper runat=server dnn_ignore=true]
    [div id=pane1 runat=server/]
<% If case != 1 Then
      wrapper.Attributes.Add("class", "both");
%>
    [div id=pane2 runat=server/]
<% End If %>
[/div]



But it doesn't as dnn_ignore does not exist and #wrapper is turned into a pane (which also happens to change it's ID to something like #dnn_ctr684_wrapper, so wrapper.Attributes.Add fails with a nullpointer exception)

So now I had to write this (working) code:
<% If case = 1 Then %>
[div]
<% Else %>
[div class=both]
<% End If %>
    [div id=pane1 runat=server/]
<% If case != 1 Then %>
    [div id=pane2 runat=server/]
<% End If %>
[/div]

(The actual code is a little more complex and contains 3 if statements and it gets more complex quickly.)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinsrunat=server without making it into a panerunat=server without making it into a pane


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