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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...URL OverflowURL Overflow
Previous
 
Next
New Post
8/26/2008 2:50 AM
 

Hi,
I'm using DNN for one of my portal project. In this project I’m using my own skin. That skin contain left menu. Following describes Code.

<
tableborder="0"cellspacing="0"cellpadding="0"style="width: 100%">
 
<tr>
   <tdheight="50"valign="top"style="width: 268px">
      <divid="Layer6"class="ToDoList">
         <ul>
               <li><ahref="~/tabid/80/Default.aspx">Homea>li>
         ul>
      div>
   td>
tr>

<tr>
   <tdheight="50"valign="top"style="width: 268px">
      <divid="Layer7"class="MyReports">
         <ul>
            <li><ahref="~/tabid/81/Default.aspx">Starta>li>
         ul>
      div>
   td>
tr>

<tr>
   <tdheight="50"valign="top"style="width: 268px">
      <divid="Layer7"class="MyReports">
         <ul>
            <li><ahref="~/tabid/82/Default.aspx">Middlea>li>
         ul>
      div>
   td>
tr>

<tr>
   <tdheight="50"valign="top"style="width: 268px">
      <divid="Layer7"class="MyReports">
         <ul>
            <li><ahref="~/tabid/83/Default.aspx">Enda>li>
         ul>
      div>
   td>
tr>



 

So when I click on these links, the URL of the web browser is filling as follows.

http://localhost/testportal/~/tabid/80/~/tabid/81/~/tabid/82/~/tabid/82/Default.aspx

after some time it’s redirected to the error page.

Please help me to resolve this problem.


Thank you.
Pubudu

 

 
New Post
8/26/2008 4:17 AM
 

If you are using the hardcoded urls for the pages then use the following syntax for the proper redirection

~/Default.aspx?tabid=83 or any page id you want.

Also your code is missing the end tags for anchor and list items.

<ahref="~/tabid/83/Default.aspx">Enda>


"Knowledge Sharing Matters!"
 
New Post
8/26/2008 5:34 AM
 

Hi,

Thank you for replying me.But that doesnt work.When I click on the altered links, its not getting navigated.URL is as follows.

http://localhost/debtorportal/Home/tabid/36/~/~/~/~/~/Default.aspx?tabid=87

Please help me.

Thank you.

Pubudu

 
New Post
8/26/2008 10:34 AM
 

If you are looking at using the ~/ link syntax, you MUST do it inside of an ASP.NET control, as a standard HTML link does not process the ~/ syntax.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/27/2008 2:05 AM
 

..just to follow up with what Mitch has (correctly) said:

You can use the <a href="~/tabid/80/default.aspx"> syntax if you add in 'runat=server' to the tag.  However, there is no reason to do this.

Your links should be in this format : /tabid/80/default.aspx.  Just drop the ~ characters and you'll be all set.  Ignore the advice to hardcode /default.aspx?tabid=80 style links - you'll end up with duplicate content indexed in Google, and it was incorrect anyway.

You might also want to investigate switching on the 'urlformat=HumanFriendly' option in your web.config (search the forums for more info on how to do this) and then code in your links like this:

<a href="/home.aspx">Home</a>

<a href="/start.aspx">Start</a>

This will result in better search engine results for your site, and looks better as well.  A little research will go a long way here - I would learn all you can about Url schemes before launching your site.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...URL OverflowURL Overflow


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