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.0Complete TabStrip example usageComplete TabStrip example usage
Previous
 
Next
New Post
5/12/2008 4:55 AM
 

Can somebody provide me a complete sample (including Markup & Code Behind) of how to use a DNNTabStrip in a user control for a custom module.

All my efforts to get the TabStrip working are proving futile with the following error:

Line: 204

Char: 3

Error: 'tabClick' is undefined

Code: 0

URL: http://localhost/dnn

 

I am using the following markup for the purpose:

<DNN:DNNTabStrip id="DNNTabStrip" SelectedIndex="0" runat="server"
    TabClickFunction="tabClick" WorkImage="images/dnnanim.gif"
                    TabRenderMode="All"
                    CssTabContainer="LoginTabGroup"
                    CssContentContainer="LoginContainerGroup"
                    DefaultContainerCssClass="LoginContainer"
                    DefaultLabel-CssClass="LoginTab"
                    DefaultLabel-CssClassHover="LoginTabHover"
                    DefaultLabel-CssClassSelected="LoginTabSelected" >
   
        <dnn:DNNTab Label-Text="General" Label-ImageUrl="~/images/minus.gif" ID="tabGeneral" runat="server">
            <table>
                <tr>
                    <td><asp:Label runat="server" ID="lblName">Name</asp:Label></td>
                    <td><asp:TextBox runat="server" ID="txtName">dffgdfgdfg</asp:TextBox></td>
                </tr>
                <tr>
                    <td><asp:Label runat="server" ID="lblDesc">Description</asp:Label></td>
                    <td><asp:TextBox runat="server" Width="300px" ID="txtDesc">dfgdfgdfg</asp:TextBox></td>
                </tr>
            </table>
        </dnn:DNNTab>
       
        <dnn:DNNTab Label-Text="Advanced" Label-ImageUrl="~/images/plus.gif" ID="tabAdvanced" runat="server">
            <table>
                <tr>
                    <td><asp:Label runat="server" ID="lblFont">Name</asp:Label></td>
                    <td><asp:TextBox runat="server" ID="txtFont">Default</asp:TextBox></td>
                </tr>
                <tr>
                    <td><asp:Label runat="server" ID="lblColor">Color</asp:Label></td>
                    <td> <asp:DropDownList runat="server" EnableViewState="False" ID="ddlColor" DataSource='<%# Me.Colors %>'></asp:DropDownList> </td>
                </tr>
                <tr>
                    <td><asp:Label runat="server" ID="lblLocation">Location</asp:Label></td>
                    <td> <asp:DropDownList runat="server" EnableViewState="False" ID="ddlLocation" DataSource='<%# Me.Locations %>'></asp:DropDownList> </td>
                </tr>
            </table>
        </dnn:DNNTab>
</DNN:DNNTabStrip>
The Tab Headers get rendered as Text, which when clicked produce the above mentioned error!!!

 
New Post
5/12/2008 5:41 AM
 

Funny thing, I was trying to remeber what the tab-control in DNN was called just a few hours ago...

My first guess would be that you have nothing in your codebehind defined for the "tabClick" function.

If I end up using this in my project, I'll post some sample code.   I imagine someone else around these forums will be able provide more information sooner than myself, however.

 
New Post
4/8/2015 4:51 AM
 
first you defined the tabClick function
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Complete TabStrip example usageComplete TabStrip example usage


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