将.html扩展名更改为.aspx是否存在任何问题。我们公司的SharePoint平台似乎只接受aspx文件。我更改了一页,但似乎工作正常。我以前没有使用过ASP,因此想知道它将来是否会引起任何问题。
答案 0 :(得分:0)
完全没有问题。这意味着浏览器和服务器将识别出它可以包含ASPX代码。
如果没有设置服务器,尝试在本地浏览器中打开它会遇到问题,但除此之外,都是一样。
如果将HTML页面重命名为PHP,也是如此。只是为了帮助服务器/浏览器了解其中的内容,也可以是HTML。
答案 1 :(得分:0)
What is the task at hand for which you need to change html extension to aspx.
Aspx means active server pages and html is only a part of these pages. These pages contain a lot more information which is required by SharePoint for their processing
Html pages are simple html pages containing dom elements... I have never seen a sharepoint link ending at an html file e.g http://sharepointsite.com/index.html
答案 2 :(得分:0)
In terms of execution : You'll be required to host the files under IIS in order to run your application .
In terms of performance: For sure , when you put .aspx
, you are asking the server to execute the files and return the response. So the performance of the static pages (.html)
should be better (even slightly in sometimes) .
My suggestion : If you don't need to run any server side script / DB communication / API consuming etc .. You may keep it as .html
.
答案 3 :(得分:0)
aspx页面可能包含服务器端代码/控件。如果没有任何服务器端代码,则可以在SharePoint工作中使用HTML页面。
关于, 普鲁沙坦