Relative URL in JQuery Post Call

前端 未结 7 1922
终归单人心
终归单人心 2021-01-30 17:22

I have the following situation.

I developed my first MVC Asp.Net application. it runs on my server at the following adress

http://localhost:59441/
         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 18:11

    I know this is an old post. But, I had the same issue and ended up here. And managed to fix that issue with UrlHelper.Action method. It should be used something like this. (Note that this specific solution will works within the view.)

    url: "@Url.Action("UpdateCheckBox", "CeduleGlobale")",
    

    Hope this helps. :)

提交回复
热议问题