The default value for HttpResponse.StatusCode is 200 if its successfully established, I've never seem the ('OK') method u're using.
Anyway, Try this
protected void Page_Load(object sender, EventArgs e)
{
if (Response.StatusCode != 200)
{
Response.Write("Couldn't connect to the internet");
}
}
Regards.
Amr Mohallel
University of Sunderland
Faculty of Applied Sciences - Applied Business Computing
|