0

View

<a href = "@Url.Action("myaction","mycontrol",new{mycate= item.cate})>
<a>

when server run it will transfer below html

<a href="/mycontrol/myaction/mycate">
</a>

how to let VIEW show absolue url like this

<a href="192.168.1.1:8555/mycontrol/myaction/mycate">
</a>

i read below the url , this need create another class to create url.

How to convert url path to full or absolute url in ASP.NET MVC

have any another way to create absolue url

another way => add some code in view

View

@{string url = "192.168.1.1.:8080"}
<a href = "@url@Url.Action("myaction","mycontrol",new{mycate= item.cate})>
<a>
wow
  • 1
  • 1

0 Answers0