Write

The most obvious requirement for the Response object is for it to send a page back to the client browser containing text, graphics, and other interesting content that visitors expect. As mentioned in Chapter 3, the following syntax sends the contents of a string variable out as part of the HTML document:

<%=strSomeTextData%> 

This actually is a shortened nomenclature for the Response.Write() method. The following has exactly the same result, but uses the unabridged syntax:

Response.Write( strSomeTextData ) 

The abbreviated syntax can become more cumbersome for complex expressions than simply outputting a single string variable. When your code needs to write complex expressions to the HTML document, using the Response.Write() method makes ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.