Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  ~/admin/tabs/tabs.ascx - cut down 60% of the code!
Previous Previous
 
Next Next
New Post 3/21/2008 2:22 PM
User is offline Joseph Sak
106 posts
www.joesak.com
9th Ranked


~/admin/tabs/tabs.ascx - cut down 60% of the code! 
Modified By Joseph Sak  on 3/21/2008 4:25:59 PM)

Today I made the tabs control 25 lines as opposed to 95 lines using DIVs/CSS instead of tables. (CSS is only 3 lines)

Here's the code:

<%@ Control Inherits="DotNetNuke.Modules.Admin.Tabs.Tabs" language="vb" AutoEventWireup="false" Explicit="True" CodeFile="Tabs.ascx.vb" %>
<%@ Register TagPrefix="dnn" TagName="HelpButton" Src="~/controls/HelpButtonControl.ascx" %>
<asp:panel id="pnlTabs" runat="server" cssclass="WorkPanel" visible="True">
    <div id="pages-left">
    <label style="DISPLAY:none" for="<%=lstTabs.ClientID%>">First Tabs</label>
    <asp:listbox id="lstTabs" runat="server" rows="22" datatextfield="TabName" datavaluefield="TabId" cssclass="NormalTextBox" width="400px"></asp:listbox>
    </div>
    <div id="pages-right">
        <asp:label id="lblMovePage" runat="server" resourcekey="MovePage">Move Page</asp:label>
        <hr noshade size="1" />
        <ul>
            <li><asp:imagebutton id="cmdUp" resourcekey="cmdUp.Help" runat="server" alternatetext="Move Tab Up In Current Level" commandname="up" imageurl="~/images/up.gif"></asp:imagebutton><dnn:HelpButton id="hbtnUpHelp" resourcekey="cmdUp" runat="server" /></li>
            <li><asp:imagebutton id="cmdDown" resourcekey="cmdDown.Help" runat="server" alternatetext="Move Tab Down In Current Level" commandname="down" imageurl="~/images/dn.gif"></asp:imagebutton><dnn:helpbutton id="hbtnDownHelp" resourcekey="cmdDown" runat="server" /></li>
            <li><asp:imagebutton id="cmdLeft" resourcekey="cmdLeft.Help" runat="server" alternatetext="Move Tab Up One Hierarchical Level" commandname="left" imageurl="~/images/lt.gif"></asp:imagebutton><dnn:helpbutton id="hbtnLeftHelp" resourcekey="cmdLeft" runat="server" /></li>
            <li><asp:imagebutton id="cmdRight" resourcekey="cmdRight.Help" runat="server" alternatetext="Move Tab Down One Hierarchical Level" commandname="right" imageurl="~/images/rt.gif"></asp:imagebutton><dnn:helpbutton id="hbtnRightHelp" resourcekey="cmdRight" runat="server" /></li>
        </ul>
        <asp:label id="lblActions" runat="server" resourcekey="Actions">Actions</asp:label>
        <hr noshade size="1" />
        <ul>
            <li><asp:imagebutton id="cmdEdit" resourcekey="cmdEdit.Help" runat="server" alternatetext="Edit Tab" imageurl="~/images/edit.gif"></asp:imagebutton><dnn:helpbutton id="hbtnEditHelp" resourcekey="cmdEdit" runat="server" /></li>
            <li><asp:imagebutton id="cmdView" resourcekey="cmdView.Help" runat="server" alternatetext="View Tab" imageurl="~/images/view.gif"></asp:imagebutton><dnn:helpbutton id="hbtnViewHelp" resourcekey="cmdView" runat="server" /></li>
            <li><asp:imagebutton id="cmdDelete" resourcekey="cmdDelete.Help" runat="server" alternatetext="Delete Tab" imageurl="~/images/delete.gif"></asp:imagebutton><dnn:helpbutton id="hbtnDeleteHelp" resourcekey="cmdDelete" runat="server" /></li>
        </ul>
    </div>
</asp:panel>

CSS:

#pages-left{ width:410px; float:left; }
#pages-right{ width:100px; float:left; }
#pages-right ul, #pages-right li{ list-style-type:none;}
 
Thanks for reading!
 
New Post 3/22/2008 3:08 AM
User is offline Sebastian Leupold
15216 posts
www.deutschnetnuke.de
1st Ranked












Re: ~/admin/tabs/tabs.ascx - cut down 60% of the code! 

please suggest enhancements and report bugs at the public issue tracker at support.dotnetnuke.com.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 3/24/2008 5:44 AM
User is offline Joseph Sak
106 posts
www.joesak.com
9th Ranked


Re: ~/admin/tabs/tabs.ascx - cut down 60% of the code! 

Oh, my bad, I thought this was a discussion forum....?? Thought people might like to see this and talk about it.

 
New Post 3/24/2008 5:44 PM
User is offline Michael Gerholdt
449 posts
8th Ranked


Re: ~/admin/tabs/tabs.ascx - cut down 60% of the code! 

I read his response to you a little differently, Joseph. Not that it is wrong to post this here - but since it is what it is, it should also be posted on gemini where it has a chance of getting included as an enhancement to DNN.


pmgerholdt
 
New Post 3/25/2008 11:17 AM
User is offline Brandon Haynes
705 posts
brandonhaynes.org
7th Ranked


Re: ~/admin/tabs/tabs.ascx - cut down 60% of the code! 

What's even better than discussing it?  Actually including it in a future DNN update so everyone gets to benefit from your excellent changes!  That's all Sebastian was suggesting :)

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  ~/admin/tabs/tabs.ascx - cut down 60% of the code!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com
DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP