title: Sharing c# variables between methods?
body: <p>I have different methods how can I share the <code>strHeaderFileName</code> (etc) variables between them?
  For example I need <code>strHeaderFileName</code> in the btnSave_Click method.</p>
  
  <pre><code>protected void multiFileUpload_FileUploaded(object sender, FileUploadedEventArgs e)
  {
      // No Loop needed multiFileUpload_FileUploaded will be called for each file uploaded
      var strHeaderFileName = e.File.FileName;
      // Use the filename as the Header Name
      var strHeaderName = strHeaderFileName.Replace(".jpg", "");
      // allow Underscore characters in FileName to become Spaces in the Display Name.
      strHeaderName = strHeaderName.Replace("_", " ");
  }
  
  protected void btnSave_Click(object sender, EventArgs e)
  {
      // use the same strHeaderFileName value here?
  }
  </code></pre>