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.0dnn:label and dnn:DNNTabStrip weird behaviour when used togetherdnn:label and dnn:DNNTabStrip weird behaviour when used together
Previous
 
Next
New Post
8/21/2007 4:05 AM
 

I have a form with more than 25 fields fields to show and I am trying to use a DNNTabStrip to organize and group them for easier browsing and updating. Each control has its own associated dnn:label and here comes the extrange behaviour: All the hints (yellow text explaining the purpose of the field) for every dnn:label in any DNNTab index other than 0 are being shown by default (instead of hidden as default). Then only hints that are hidden are those for dnn:labels in the FIRST Tab (0), the rest are SHOWN.

The rest of the behaviours work as expected. When the (?) is clicked the hint is hidden again and if clicked again, shown again. Is it a bug in dnn:label code or is DNNTabStrip to blame?

A sample simple code is provided. If you use this code, when click on Tab 2, you will see the yellow background of dnn:label Label2 being shown. It has no contents but it serves the purpose to expose the problem.

<dnn:DNNTabStrip ID="DNNTabStrip2" runat="server">  
<dnn:DNNTab ID="Tab1" runat="server" Label-Text="Tab 1">  
<table>  
<tr>  
<td>  
<dnn:label ID="Label1" runat="server" Text="Label1" ControlName="TextBox1" />  
<asp:TextBox ID="TextBox1" runat="server">Contents for text 1</asp:TextBox>  
</td>  
</tr>  
</table>  
</dnn:DNNTab>  
<dnn:DNNTab ID="Tab2" runat="server" Label-Text="Tab 2">  
<table>  
<tr>  
<td>  
<dnn:label ID="Label2" runat="server" Text="Label2" ControlName="TextBox2" />  
<asp:TextBox ID="TextBox2" runat="server">Other contents</asp:TextBox>  
</td>  
</tr>  
</table>  
</dnn:DNNTab>  
</dnn:DNNTabStrip
>

 
New Post
8/21/2007 10:09 PM
 

The default rendering mode for the tabstrip is to use callbacks.  The DNNLabel control does not work well with callbacks.  Try specifying a TabRenderMode="All".  If you need  the callback functionality I think you can keep the callback rendering and change the callback type to process the entire page to get the label control to work.

CallBackType="ProcessPage"


 
New Post
8/22/2007 2:12 AM
 

It works perfectly with TabRenderMode="All". Just as needed. Thanks a lot.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0dnn:label and dnn:DNNTabStrip weird behaviour when used togetherdnn:label and dnn:DNNTabStrip weird behaviour when used together


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