.NET 4.5 Web 窗体包含 Javascript - 这些文件是什么

.NET 4.5 Web Forms Included Javascript - What are these files?

本文关键字:文件 是什么 Javascript 包含 Web 窗体 NET      更新时间:2023-09-26

在最新的 2013 VS 预览版中,当您创建基本 asp.net Web 表单页面时,它会生成一个基本网站,其中引用并包含在项目中的以下 JS 文件。

现在我注意到例如 WebForms.js 似乎处理回发等,但是我想知道如果我打算滚动自己的树视图、网格视图等,是否需要它们?

如果我不打算使用提供的 UI(引导程序),可以安全删除其中哪些文件?

<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />

这篇关于 Asp.Net scriptManager 的博客可能会对您的问题有所帮助。

ASP.NET 4.5 Web窗体中的脚本管理器改进