But unlike asp files, VB.NET offers a much cleaner separation between HTML and code.
不过与asp文件不同的是,VB.NET能够更清晰地分离HTML和代码。
By default, static compression only compresses HTM, HTML, and TXT file types and dynamic compression only compresses exe, DLL, and asp file types.
在默认情况下,静态压缩只压缩htm、html和txt文件类型,动态压缩只压缩exe、dll和asp文件类型。
In both classic ASP and ASP.NET, developers were used to using <%= expression %> to mix static and dynamic content. Unfortunately it is prone to HTML-injection errors.
在ASP和ASP.NET中,开发人员可以使用<%=expression%>来混合静态与动态内容,但这样也很容易造成HTML注入错误。
By default, HTML elements within an ASP. NET file are treated as literal text and you cannot reference them in server-side code.
默认情况下,ASP.NET文件中的HTML元素作为文本进行处理,并且不能在服务器端代码中引用这些元素。
While scripts in an HTML file are executed on the client (in the browser), scripts in an ASP file are executed on the server.
HTML文件的脚本程序是在浏览器中执行的,而ASP文件中的脚本程序是在服务器端执行的。
While scripts in an HTML file are executed on the client (in the browser), scripts in an ASP file are executed on the server.
HTML文件的脚本程序是在浏览器中执行的,而ASP文件中的脚本程序是在服务器端执行的。
应用推荐