title: Using a class once it's properties have been set in c#
body: <p>i have a small class with just a couple properties in it.</p>
  
  <p>here is an example:</p>
  
  <pre><code>public class clsRepLogs
  
  public string those;
  public string these;
  
      public void setThoseandThese
      {
      //call a stored procedure
      //get results
  
      this.those = something;
      this.these   = somethingElse;
      }}
  </code></pre>
  
  <p>from my first.aspx.cs</p>
  
  <p>i call the set function:</p>
  
  <pre><code>clsRepLogs cLog - new clsRepLogs()
  cLog.setThoseandThese()
  </code></pre>
  
  <p>so now the properties have been assigned values.</p>
  
  <p>i now want to use them in another aspx.cs file to populate a form... but can't figure out how to get to them... </p>
  
  <p>i tried</p>
  
  <pre><code>clsRepLogs cLog;
  
  lblThese.text = cLog.these;
  </code></pre>
  
  <p>but it's giving me an error:  "Use of unassigned local variable 'cLog'</p>
  
  <p>basically, how do i tell it to use the values i've already assigned to that class instance from before?</p>
  
  <p>i hope i'm explaining this right, but i might be way of on what i'm doing. any help appreciated.</p>