Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

about http://localhost/Site/page.aspx and http://10.10.10.10/Site/page.aspx

$
0
0

Hey there, I stored the project URL in the Database as http://10.10.10.10/Site

and I read from database properly, and try to load page.aspx, then it will redirect me to the login page, which is not the expected.

Then I tried to use the URL

       "http://" + HttpContext.Current.Request.Url.Host + "/Site/page.aspx";

then it works(without redirect to Login page),However, I can not change the value in the Database, so how to handle this situation.

 

Thanks,

T

 


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>