title: How to get data from web page?
body: <p>I want to get the data from <a href="http://www.milliyet.com.tr/Secim2009/api/belediyelist.ashx?sehirid=81" rel="noreferrer">this</a> page and insert it to my mssql database. How can I read this data with asp.net c#? SehisID is a value from 1 to 81.</p>
  
  <p><strong>EDIT:</strong>
  My code is below.</p>
  
  <pre><code>for (int i = 1; i &lt;= 81; i++)
  {
      HttpWebRequest rqst = (HttpWebRequest)WebRequest.Create("http://www.milliyet.com.tr/Secim2009/api/belediyelist.ashx?sehirid=" + i);
      rqst.Method = "POST";
      rqst.ContentType = "text/xml";
      rqst.ContentLength = 0;
      rqst.Timeout = 3000;
  
      HttpWebResponse rspns = (HttpWebResponse)rqst.GetResponse();
      form1.InnerHtml += rspns.ToString() + "&lt;br&gt;";
  }
  </code></pre>