Non-80 Port Number and Web Controls

  • Thread starter Thread starter marksisson
  • Start date Start date
M

marksisson

I have an ASP.Net app running on localhost:9090. When I add a button
to my test.aspx form the <form> tag gets to the browser has it's
action="test.aspx". This obviously doesn't work because my application
is listening on port 9090 and not 80.

Shouldn't ASP.NET recognize the port that the application is running on
and adjust all links accordingly? If not, how do you code around this?

TIA
mark
 
What do you mean "obviously doesn't work". Seems to me relative URLs will
always go to the current domain and port. What results do you get? By the
way, it is the browser that sends the form or processes links.
 
Back
Top