中国开发网: 论坛: 程序员情感CBD: 贴子 98876
Miracle: o,上面的回答可能误导你了,<%= %>不能直接用在你这种情况下,具体用法看MSDN,非常容易,基本上跟ASP一样的。
Using <%= %>
The simplest way to display information from an ASP.NET program is to use the <%= %> construct. The value that is entered after the equals sign is written into the current page. The following code displays the value of the variable name.

Hello <%= name %>!
If the value of name were "Frank", the code would write the following string in the current page:

Hello Frank!
The <%= %> construct is most useful for displaying single pieces of information.
夫习拳艺者,对已者十之七八,对人者,仅十之二三耳。拳艺之道,深无止境。得其浅者,一人敌,得其深者,何尝不万人敌耶!
我的Google Picasa相册
我的新BLOG

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录