O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required