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  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


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.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

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