'JQuery' is undefined

前端 未结 19 1529
生来不讨喜
生来不讨喜 2020-12-28 15:21

I am working on a ASP.net project created with local file system settings. I am using MVC and Jquery. Jquery is working fine when I run the application in debug mode i.e. in

19条回答
  •  遥遥无期
    2020-12-28 16:02

    Raja is right, URL.Content works.

    
    

    Further, to prevent yourself from getting surprised at the moment you are migrating your application to an IIS server, don't use web development server but use IIS when developing.

    You can use IIS directly from visual studio by editing the the web properties:

    • Go to the tab 'Web'
    • Check 'Use Local IIS Web server'
    • Click 'Create Virtual Directory'
    • Go to the IIS Manager to disable anonymous access in the created virtual directory if applicable.

提交回复
热议问题