title: How to display data result from database in C#
body: <p>I am trying to make a website in C# and .accdb database using Visual Studio 2010
  my .accdb database has username and score and I want to display the user that has credit more than 0 to the Default.aspx</p>
  
  <p>So I created a button and a textbox. </p>
  
  <pre><code>&lt;div&gt;
  &lt;asp:Button ID="CreditSearch" runat="server" Text="Credit" onclick="btnCreditSearch_Click"  /&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>and the function for btnCreditSearch_Click is:</p>
  
  <pre><code>protected void btnCreditSearch_Click(object sender, EventArgs e)
  {
      CreditSearch();
  }
  
  private void CreditSearch()
  {
      string users;
      users = Process.UserCreditSearch();
      string A = users.ToString();
      TextBox1.Text(A);
  }
  </code></pre>
  
  <p>and my Process.UserCreditSearch() is:</p>
  
  <pre><code>   public static string UserCreditSearch()
  {
      string query = "SELECT srusername FROM usertb WHERE credit &gt; 0 ";
      return query;
  
  }
  </code></pre>
  
  <p>but then it is not working.  for the credit search function, it says "Non invocable member' System.UI.Webcontrol.TextBox.Text' can not be use like a method</p>
  
  <p>I hope somebody knows what I done wrong and thanks</p>