title: Viewstate updated by a reference to a cast obj?
body: <p>I'm keeping a small DataSet in a Viewstate as shown below and want to know why it's being updated.</p>
  
  <p>intId is a string that is passed into the method.  When a match happens the row is deleted in DataSet ds, but the Viewstate is also updated at the same time. Confused on why. Is it a reference issue?</p>
  
  <pre><code>           DataSet ds = (DataSet)ViewState["DataSet"];
  
             foreach (DataRow row in ds.Tables[0].Rows)
              {
                  var intId = row[0].ToString();                   
  
                  if (roleID.ToString() == intId)
                  {
                      row.Delete();
                  }
              }
  </code></pre>