这些是什么人称为ASP.NET&LT;%:%GT ;? [英] What are these called in ASP.NET <%: %>?
本文介绍了这些是什么人称为ASP.NET&LT;%:%GT ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这些是什么人称为ASP.NET?
What are these called in ASP.NET?
-
&LT;%#......%&GT;
-
&LT;%= ...%&GT;
-
&LT;%...%&GT;
<%# ... %>
<%= ... %>
<%: ... %>
和哪些不同的变化?
如何每个人使用吗?
And what are the different variations? How are each of them used?
推荐答案
这是一个code座。随着版本#
用于数据绑定。他们基本上让你嵌入C#code到您的aspx页面。
That's a code block. The version with the #
is used for data binding. They basically allow you to embed C# code into your aspx page.
MSDN有code块好文章的此处,以及良好的数据绑定前pressions的这里。
MSDN has a good article on code blocks here, and a good article on data binding expressions here.
这篇关于这些是什么人称为ASP.NET&LT;%:%GT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文