title: how to send web request to check the link whether the link is broken or not
body: <p>i am having text box(multi line) from that i want to send the web request to all links to check whether the link is working or not if not working then message of error</p>
  
  <pre><code>string strLink = TextBox1.Text;
  WebResponse objResponse;
  WebRequest objRequest = System.Net.HttpWebRequest.Create(strLink);
  
  objResponse = objRequest.GetResponse();
  using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
  {
      strLink = sr.ReadToEnd();
      sr.Close();
  }
  strLink = strLink.Replace("&lt;form id='form1' method='post' action=''&gt;", "");
  strLink = strLink.Replace("&lt;/form&gt;", "");
  //strResult = strResult.Replace("&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;");
  div.InnerHtml = TextBox1.Text;
  </code></pre>