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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Info about Tabid and using it to redirect to another page
Previous Previous
 
Next Next
New Post 5/9/2008 6:29 AM
User is offline hade
3 posts
10th Ranked


Info about Tabid and using it to redirect to another page 

I'm new to DNN. I'm working on a project and have come up with a problem of setting links. I have a gridview which displays the results of a search criteria. The rows of the results have an hyperlink ID coulmn, which I want to set the url to the tabid of the ViewInfo module.

I would like to know if TabId contains the id of the current page or any other page. Can youll give me a brief explanation of TabId.

This is what I do but it doesnt work

 hl.NavigateUrl = Globals.NavigateURL(TabId, "NOWAutoInfo", "mid=" & CStr(ModuleId) & "&id=" & grdList.Rows(i).Cells(0).Text.ToString)

This redirects me to the current page (Search Module) in which I was in. How to I get it to go to the page where the ViewInfo module is. The tabid from the url  of ViewInfo module is 60 and I dont intend hardcoding it. Searched the net but most of the places they only mentioned TabId. I also read about GetTabByTabPath but was not very clear about it.

Thanks for your time and help

Hade

 
New Post 5/12/2008 1:30 PM
User is offline Craig Walker
238 posts
9th Ranked




Re: Info about Tabid and using it to redirect to another page 

TabID is the current tab. There are a few ways you could do what you want. You could use GetTabByTabPath, but you run the risk of that changing if you move pages around. You don't want to hard code, but that will, of course, verify the code works.

The option I prefer for this type of need is to use Module Settings. You can create a settings page where you either pull in a list of all your pages and select the page you want to redirect to, or you could cheat and just enter the tabid you want. You can store this in Settings as any name you want (like ViewInfoTabId).

Then, in your code, you would just say:

hl.NavigateUrl = Globals.NavigateURL(Settings("ViewInfoTabId"), "NOWAutoInfo", "mid=" & CStr(ModuleId) & "&id=" & grdList.Rows(i).Cells(0).Text.ToString)

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Info about Tabid and using it to redirect to another page
 


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.

 


Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com

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