Testing Response.End, Response.Flush, and Response.Redirect

Test 1: Response.Buffer property

Response.Buffer = True

Expected: True (buffering is on by default)

Test 2: Response.Status

Response.Status = 200 OK

Expected: 200 OK

Test 3: Response.ContentType

Response.ContentType = text/html

Expected: text/html

Test 4: Response.IsClientConnected

Response.IsClientConnected = True

Expected: True

Test 5: Response.Flush (should not error)

Before Flush

After Flush - if you see this, Flush worked!

Test 6: Response.End (should stop here)

This should appear