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 ExtensionsModulesModulesNavigate to Page, TabNameNavigate to Page, TabName
Previous
 
Next
New Post
7/8/2010 6:09 AM
 
Hi
I need to navigate to page created in DNN , for example I have created page calle "test" and I want to click on button and Move to that page
I used

Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabName, "test"))

but the error is cannot convert string to integer !

Help

Best Regards

 
New Post
7/8/2010 6:41 AM
 
Hi,
To move to a other page the syntax is

Response.Redirect(Globals.NavigateURL(TabId))

with TabId (a integer) the TabId of your page "test"
 
New Post
7/8/2010 12:44 PM
 
I try that , but it's not working also
I have to write the page name direct
response.redirect("text.aspx")
 
New Post
7/8/2010 5:33 PM
 
You don't need to type in the name of the page, you use the TabId of the page you want to redirect to like Sacha. To get the TabId of the page you want to go to you can use the TabController and TabInfo classes. TabController has a function GetTabByName which returns the tabinfo object for a page matching the name.
 
New Post
7/9/2010 4:35 PM
 
HI guys
I want to do that in gridview
I have link and when you click on link will navigate to page "test"
if I write as follow:
<asp:hyperlink id="HL" Text="click here" Runat="server" Navigationurl=<%# Dotnetnuke.Common.Globals.NavigationURL(eval("PageID")) %> > </Hyperlink>

the PageID is Integer stored in SQL Tabel, the problem it's not retruning the value , but if I write same with diffrent in
<asp:hyperlink id="HL" Text="click here" Runat="server" Navigationurl=<%# Dotnetnuke.Common.Globals.NavigationURL(65) %> > </Hyperlink>

it will go to the page ? what should I do ? ? ?

Regards
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesNavigate to Page, TabNameNavigate to Page, TabName


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