Miracle:
o,上面的回答可能误导你了,<%= %>不能直接用在你这种情况下,具体用法看MSDN,非常容易,基本上跟ASP一样的。
[阅读: 456] 2005-02-18 08:40:58
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