I make a HttpWebRequest to the web which is hosted in the local host from my
C# application by the following code:
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create("http://localhost:1035/Web/LogIn.aspx");
But every time I start the server the port no is changing which makes
changes to the above code. How can I get rid of it. Can't I make the request
without specifiying the port no? How can I make the above string independent
from the server port no?
Thanks in advance
Hope to see an answer soon.