title: C# SQL AVG to a Text box
body: <p>I have a query that gets me the correct info. I am unsure of how to display the data from that query on a web page in a TextBox.</p>
  
  <p>Yes, I have seen this: <a href="https://stackoverflow.com/questions/4978137/c-sharp-sql-sum-value-to-a-label/4978186#4978186">C# SQL SUM value to a label</a>.</p>
  
  <p>It did not help, even after searching what that user was doing. I really am not sure what all I need to do, though it looks like a few lines of code solves the trick. I really lack experience with things like this.</p>
  
  <p>Thus far, I have the text box, <code>avgRating</code>. I have <code>SqlDataSource2</code>. Which runs the query that gets the correct data. I am just unsure of where to go from there. </p>
  
  <p>I DID try the above method, but it was a little over my head. Does anyone have an idea for me to run with?</p>
  
  <p>Note: It does not necessarily need to be a a text box. If it is more easily feasible to perform this using another GridView or something, please let me know. I am as new as they come.</p>