什么是ASP.Net相当于PHP的回声? [英] What is the ASP.Net equivalent to PHP's Echo?

查看:127
本文介绍了什么是ASP.Net相当于PHP的回声?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要回响由像定界符分隔的字符串:
塞尔吉奥|塔皮亚| 1999 |上午10点

I want to 'echo' a string separated by delimeters like: sergio|tapia|1999|10am

一个HTML页面的主体。

the Body of an HTML page.

我怎样才能做到这一点?谢谢!

How can I achieve this? Thank you!

推荐答案

使用<一个href=\"http://msdn.microsoft.com/en-us/library/ms525585.aspx\"><$c$c>Response.Write(string).

有到的Response.Write A两个快捷方式,如果你想在页面上输出:

There are a couple of shortcuts to Response.Write if you are trying to output on the page:

<%="sergio|tapia|1999|10am"%>

或者

<%:"sergio|tapia|1999|10am"%> (.NET 4.0)

请参阅here对于不同的选择。

See here for the different options.

这篇关于什么是ASP.Net相当于PHP的回声?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆