Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Info about Tabid and using it to redirect to another pageInfo about Tabid and using it to redirect to another page
Previous
 
Next
New Post
5/9/2008 9:29 AM
 

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 4:30 PM
 

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
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Info about Tabid and using it to redirect to another pageInfo about Tabid and using it to redirect to another page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out