title: Count visitor of one page in asp.net
body: <p>I have a page that contains a record of a database. I want to count number of visits of that page . I use codes below to counts number of visits of page by increment view field of record. but this increment view randomly. for example when I refresh page the view increment 20 !.
  my codes for this page is:</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
      {
          da db = new da();
          string str = "select views from newstxt where id=" + Request.Params["id"].ToString();
          DataTable dt = new DataTable();
          dt = db.select(str);
          int view = Int32.Parse(dt.Rows[0][0].ToString());
          //increment
          view++;
          //
          str = "update newstxt set views=N'{0}' where id=" + Request.Params["id"].ToString();
          str = string.Format(str, view);
          db.docom(str);
  
  
      }
  </code></pre>