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