What is the ASP.Net equivalent to PHP's Echo?

后端 未结 3 790
有刺的猬
有刺的猬 2020-12-03 17:22

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

the Body of an HTML page.

How can I achieve this? Thank you!

3条回答
  •  情话喂你
    2020-12-03 17:27

    Use Response.Write(string).

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

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

    Or

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

    See here for the different options.

提交回复
热议问题