title: C# DataAccess Update, Insert, Delete
body: <p>I am a newborn programmer who is currently looking into the Insert, Update and Delete functions in ASP.NET C#. Now I got a little support from a friend who was friendly enough to write a DataAccess for me (I guess it's a BLL) before he left for work.</p>
  
  <p>I am used to using Datasets and gridviews which is all pretty straight forward, so this way of working with data is very very difficult to me.</p>
  
  <p>Now, I have lots of codes in the DataAccess, but I guess this is the one I have to concentrate about:</p>
  
  <pre><code>/// &lt;summary&gt;
  /// Used for Create/Update/Delete etc.
  /// &lt;/summary&gt;
  public void Execute(string query)
  {
      SqlCommand comm = GetSqlCommand(query);
  
      _conn.Open();
      comm.ExecuteNonQuery();
      _conn.Close();
  }
  </code></pre>
  
  <p>And I am wondering:</p>
  
  <ol>
  <li>How do I use an Insert, Update And Delete from a DataAccess file</li>
  <li>What am I supposed to put into my .aspx page?</li>
  </ol>
  
  <p>I hope my questions isn't too "large" an area to explain if you know what I mean :)
  Any help is more than appreciated guys!</p>
  
  <p>Regards,
  Mike</p>