Why is my ASP.NET page injecting this WebResource.axd Javascript file?

前端 未结 5 1962
栀梦
栀梦 2021-01-01 02:45

When I view source on my ASP.NET page I get the following snippet:



        
5条回答
  •  时光说笑
    2021-01-01 03:12

    This is how .NET postbacks work, and why a lot of people are moving the the .NET MVC model. In order for the postbacks to work correctly, .NET actually relies on javascript to do a lot of the dirty work. The only way you can really get rid of it is to go with the MVC model.

提交回复
热议问题