title: Add returned LINQ result to label/textbox
body: <p>I would like to add the result of a LINQ 2 SQL query to a label or textbox.
  I use a class "CustomerClass" as a datalayer. In here I have a method with a LINQ query.
  This result needs to be returned to the code behind file and added to a label or textbox.</p>
  
  <p>Method in Class:</p>
  
  <pre><code>public static object SelectCustomerByUser(string user)
  {
      var query = (from p in dc.Customers
                   where p.No_ == user
                   select p).Single();
      return query;
  }
  </code></pre>
  
  <p>Code behind file:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      string user = Membership.GetUser().UserName.ToString().ToUpper();
      var queryresult = CustomerClass.SelectCustomerByUser(user);
      lblStreet.Text = ?????????
  
  }
  </code></pre>
  
  <p>When i set the LINQ query direclty into the code behind file I can assign lblStreet.Text directly like: <code>lblStreet.Text = queryresult.Street</code>But I want to keep the LINQ queries separatly from the code behind file.</p>