Relative URL in JQuery Post Call

前端 未结 7 1920
终归单人心
终归单人心 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 17:57

    http://localhost:59441/ and
    http://testServer/JprApplication/ will both work with your

    $.ajax({ type: "POST", url: "/CeduleGlobale/UpdateCheckBox", ...

    if your hosting in iis you just need to create a virtual host in your
    C:\Windows\System32\drivers\etc\hosts

    file. Add this line at the bottom of your hosts file

    127.0.0.1 CeduleGlobale

    create a new site like this select sites, right click and create a new site

    fill in your details and set the same hostname as you created above 'CeduleGlobale'

    then deploy your mvc appliation to this site

提交回复
热议问题