Day 18

Quiz

1: What would be the syntax to read a variable named txtCity from a page that could be either from a form or a querystring?
A1: Because it could come from either a form or querystring, don't specify the collection it is coming from. If you knew it was coming from one or the other, you can use
Request.Form("txtCity")

or

Request.QueryString("txtCity")
2: What command would you use to cause IIS not to send content until the entire ASP was finished?
A2: This command causes all content to stay buffered until the change is finished. It also gives you the ability to change headers or do a Response.Redirect even if you have already written information to the body of the page .
3: How do you instantiate an object in ASPs?
A3: ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days 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.