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  |  

DotNetNuke Marketplace
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  need help with publishing and obfuscation
Previous Previous
 
Next Next
New Post 8/27/2008 6:37 AM
User is offline nickfox
63 posts
10th Ranked


Re: need help with publishing and obfuscation 

Thanks for that DotNetNuke.Common.Globals.NavigateURL, I finally got off my lazy butt and figured out how it worked. I found a webpage that gave me the clue to do what I needed:

http://blog.tungstentech.com/CategoryView,category,DotNetNuke%20Development.aspx

I needed this for *client side* use in javascript and I also wanted to use the *TabName* so that I could move it from development to production without having to worry about different TabIDs, so in my page_load method, I had the following:

using System;
using System.Collections;

public partial class DesktopModules_RoutesList_RoutesList : DotNetNuke.Entities.Modules.PortalModuleBase
{
    protected void Page_Load(object sender, EventArgs e) {
        ArrayList list = this.PortalSettings.DesktopTabs;
        int TruckTabID = 0;

        foreach (Object theitem in list) {
            DotNetNuke.Entities.Tabs.TabInfo theTab = (DotNetNuke.Entities.Tabs.TabInfo)(theitem);
            if (theTab.TabName == "Truck") {
                TruckTabID = theTab.TabID;
                break;
            }
        }
        string TruckURL = DotNetNuke.Common.Globals.NavigateURL(TruckTabID);
        litTruckURL.Text = "<input type=\"hidden\" id=\"TruckURL\" value=\"" + TruckURL + "\"/>";
    }
}

and on the webpage, I had:

<asp:Literal runat="server" ID="litTruckURL"/>

this allowed me to imbed the URL into javascript like this:

YAHOO.widget.DataTable.formatLink = function(elCell, oRecord, oColumn, oData) {
            elCell.innerHTML = '<a href="' + document.getElementById('TruckURL').value + '?jobID=' + oRecord.getData("jobID") + '">' + oData + '</a>';
};

and everytnhing is working well.

once again, thanks.

Nick

 


 

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  need help with publishing and obfuscation
 


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.

 


UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net
Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com

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