Hi,
The code, you have written will end the current response.to countine the while loop you need to set endResponse parameter of Redirect method to false.
Code
int i = 0;
while (i < 5)
{
if (i == 3)
{
Response.Redirect("Default1.aspx",false);
}
i++;
}
I hope this will help you out.