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...Building ExtensionsBuilding ExtensionsModulesModulesRedirecting to another page. How to find Tab IDRedirecting to another page. How to find Tab ID
Previous
 
Next
New Post
4/10/2012 1:00 PM
 

You could select it ahead of time.  Typically I create a dropdownlist in the module settings, bind it to the TabController and save it as a setting.

ddlSuccessPage.DataSource = TabController.GetPortalTabs(this.PortalId, -1, true, Localization.GetString("DefaultSuccessPagesListItem.Text", this.LocalResourceFile), true, false, false, true, true);

ddlSuccessPage.DataValueField = "TabID";
ddlSuccessPage.DataTextField = "IndentedTabName";
ddlSuccessPage.DataBind();

if (Settings["SuccessPage"] != null)
{
  ddlSuccessPage.SelectedValue = Settings["SuccessPage"].ToString();
}

PS - As Sebastian mentioned you get "see" the tabid in the url when editing the page you can get the current tabid programmatically using this.TabId





Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
1/12/2013 9:13 PM
 

but if your in page A, how to you access settings for page B?

@ Sebastian Leupold.. all due respect... looking at your replies throughout the dnn forums over the years, you add just enough comments to create additional questions or you are frankly just not very helpful. Seems like you post only to increase your post count with little effort to actually help someone understand your direction.


 
New Post
1/12/2013 9:21 PM
 

"PS - As Sebastian mentioned you get "see" the tabid in the url when editing the page you can get the current tabid programmatically using this.TabId"

I cringe at the idea of hard coding tabid's obtained while in the page edit UI, There must be a way to access the pages structure? seems really simple to just run a linq expression on that page structure and get the node your looking for.



 
New Post
1/16/2013 3:20 AM
 

Hi

To access the settings of PageB you can create a instance of tabinfo object by passing tab name. Check below link:

http://stackoverflow.com/questions/9429211/how-to-get-the-tab-id-from-url-in-dotnetnuke

Thanks
Sibabrata
Mindfire Solutions

 
New Post
10/9/2018 4:10 PM
 
Some of us are new to the DNN and there are not whole allot resources available on the internet about DNN as compare to the other CMS systems. I noticed this form is not that helpful as most of the folks assume that everyone know everything. So please elaborate a little bit with some details or reference somewhere where we can find some good help instead of figuring out what exactly your answers mean on top of the our issue in hand. Thanks.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesRedirecting to another page. How to find Tab IDRedirecting to another page. How to find Tab ID


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