One problem could be the :
Response.Redirect("Default.aspx", true);
since when you give the value true to the Response.Redirect
nothing bellow that specific line of code will be executed....
In order to execute the
Response.Flush
you have to
assign the value false in order to also check for any lines of code beneath
the Response.Redirect.
You could also try to use
Response.End
instead of Response.Flush...
This way the
EndRequest
will be triggered..