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

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Adding a link to a control
Previous Previous
 
Next Next
New Post 9/10/2008 3:23 PM
Unresolved
User is offline Waqar Sadiq
1 posts
10th Ranked


Adding a link to a control 

Hello,

I am developing a DNN module in C#.  I would like to add a link in the fotter section of the module, in view mode, to another control.  This is very similar to the link "Add Content" that shows up in the edit mode.  I have added a module action to ModuleActions getter.  I have added the following statement.

 

 

Localization.GetString(AuctionModuleActionType.ListItem, this.LocalResourceFile),AuctionModuleActionType.ListItem, "", "", listItemUrl, false, DotNetNuke.Security.SecurityAccessLevel.View,true, false);

Can anyone please tell me how I can make the link apper in view mode.  Some sample code would be very helpful. Thanks.

 

actions.Add(GetNextActionID(),

 
New Post 9/14/2008 10:15 PM
User is offline Prashant Lakhlani
34 posts
10th Ranked


Re: Adding a link to a control 

Hi Waqar,

    i think there is an easier way,

   do this:

   1] if the control you want to display is an edit control and does the editing operation for your module, add that control as Edit type of control and you can simply use Edit(NavigateUrl(tabid)) to go to your control. write this statement in the link button click event and add a link button to your view control

  2] when you create an entry of your control in module definition, add a key to your control. And use that key to naviget to that control, it would do like : NavigateUrl(tabid,"controlkey","other url paras or String.Empty"

3] another option is : http://www.codeproject.com/KB/aspnet/DOTNETNUKE_NAVIGATION.aspx

hope this helps

 

 

       

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Adding a link to a control
 


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.

 


Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com

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