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

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.

Leave a Comment