title: Unable to cast object of type 'System.String' to type 'System.Web.UI.WebControls.Label'
body: <p>I have a page that gets value from SQL. I'm having a problem when I initialize Label object with the field having TEXT data type.</p>
  
  <p>Below is my code.</p>
  
  <pre><code>Dim csq As New Survey.DAL.CSurvey
  csq.SurveyID = ViewState("SurveyId")
  Dim dt As DataTable = csq.GetSurveyThankYouDetails
  For Each r As DataRow In dt.Rows
      lblThankYoutext.text = r.Item("QuestionText") ' error falls here
      lbtLink.Text = r.Item("ThankYouLinkText")
  Next
  </code></pre>