0
I’m starting to work with Aspnetcore, and I’m having a hard time printing the absolute url of my project. I come from PHP and look for something similar to the code below, written in PHP:
<?php echo $_SERVER['HTTP_HOST'];
Any idea?
0
I’m starting to work with Aspnetcore, and I’m having a hard time printing the absolute url of my project. I come from PHP and look for something similar to the code below, written in PHP:
<?php echo $_SERVER['HTTP_HOST'];
Any idea?
1
You have to separate the host and the path in your View, follow the code.
@[email protected]
Browser other questions tagged asp.net-core
You are not signed in. Login or sign up in order to post.