Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 684845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:51:43+00:00 2026-05-14T01:51:43+00:00

In this asp.net page, there is a link that leads to another page in

  • 0

In this asp.net page, there is a link that leads to another page in a certain subfolder, It has always worked.

Recently, for technical reasons (irrelevant) , the port number had to be changed (80 to 81). Every link keeps working, but there is ONE that doesn’t keep the port number no matter what.

<asp:HyperLink runat="server" Text="link1" NavigateUrl="~/default.aspx" /> | 
<asp:HyperLink runat="server" Text="LINK2" NavigateUrl="~/Secure/RACs/default.aspx" /> | 
<asp:HyperLink runat="server" Text="link3" NavigateUrl="~/Admin/page3.aspx" /> | 
<asp:HyperLink runat="server" Text="link4" NavigateUrl="~/Admin/page4.aspx" /> | 
<asp:HyperLink runat="server" Text="link5" NavigateUrl="~/Admin/page5.aspx" /> | 
<asp:HyperLink runat="server" Text="link6" NavigateUrl="~/Admin/page6.aspx" /> | 
<asp:HyperLink runat="server" Text="link7" NavigateUrl="~/Admin/page7.aspx" /> 

As you can see, everry link gets it’s URL through “~”, and every single one gets the :81 port number after the IP, but link 2 just doesn’t keep any port number (if you click on it, it loses the port number, then if you add it back in the navigation bar in the browser, it works, but then and click anything inside it that leads to any other page within the same folder, the same problem occurs)

Then I went to check and compare the headers and masterpage loadins, there doesn’t seem to be anything that would affect port number. Codes follow:

The LINK2 leads to:

<%@ Page Language="VB" MasterPageFile="~/Common/MasterPage.master" Title="LINK2" Culture="pt-BR" UICulture="pt-BR" %>
<%@ Register TagPrefix="uct" TagName="RacControl" Src="~/Secure/RACs/RACControl.ascx" %>
<%@ Register TagPrefix="uct" TagName="DOCsControl" Src="DOCsControl.ascx" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Import Namespace="Pm.Common.Type" %>

And (for example) link 3 leads to:

<%@ Page Language="VB" MasterPageFile="~/Common/MasterPage.master" Title="LINK3" %>
<%@ Register TagPrefix="uct" TagName="link3" Src="~/Admin/UsersControl.ascx" %>
<%@ Register TagPrefix="uct" TagName="CreateUserControl" Src="~/Admin/CreateUserControl.ascx" %>

Where would be any issue that would cause the page to lose the port number everytime I want to access anything on the “/secure/racs” folder ?

I’ll be watching this question, please comment, anything will help, and I’ll post more code if requested.

–[EDIT 1]–
Running fiddler, and clicking in one link (the main one) that loses port when clicked, I get this redirection:

alt text http://dl.dropbox.com/u/3045472/losingport.png

A good thing is that the problem isn’t in the request, a bad thing is that I don’t know what is redirecting it to the default port while not redirecting the rest of the pages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:51:44+00:00Added an answer on May 14, 2026 at 1:51 am

    Are you sure the Secure folder isn’t configured to redirect to an HTTPS connection and the reason it loses the port is that it’s actually on port 443?

    What is the difference between the config of the Admin and Secure directories in IIS?

    Perhaps you should use the Fiddler or Charles proxy tools to see what actually happens with the request from your browser?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a link for an ASP.NET page that has an image
I have an ASP.NET/c# web application. There is a link on the page that
I have an ASP.NET page that calls to a WCF service. This WCF service
in my asp.net application (vb code behind) I have a page that has an
I have an ASP.net WebForms page that has a lot of content on the
I have built an asp.net page that returns an image with Response.BinaryWrite() . This
In my asp.net mvc page I create a link that renders as followed: http://localhost:3035/Formula/OverView?colorId=349405&paintCode=744&name=BRILLANT%20SILVER&formulaId=570230
I have an Asp .net page like this simple one http://issamsoft.com/app2/page1.aspx and I want
In code-behind of an ASP.NET page I have this method: public string TestFunc() {
I have this serious: I have ASP.NET page, This page contents Update panel with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.