Need help with working with Dynamic Query results

I think you need the {} around the the stuff after the foreach line. The For each is the loop and the curly brackets denote what is needs to repeat.

		foreach (System.Data.DataRow r in dqa1.QueryResults.Tables["Results"].Rows)
               {
		epiTextBoxQuoteLetterHTML.Text = r["UD15_GS_BodyEmail_c"].ToString();
               }

And you don’t end the line ( ; ) on the foreach line. It continues below that line.

2 Likes