protected void Page_Load(object sender, EventArgs e)
{
if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true)
{
this.lblMsg.Text = "Net available";
}
else
{
this.lblMsg.Text = "Net not available";
}
}
{
if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true)
{
this.lblMsg.Text = "Net available";
}
else
{
this.lblMsg.Text = "Net not available";
}
}