Non-80 Port Number and Web Controls

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
 
P

Peter Rilling

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top