SQL база данных в таблицу HTML, C# приложение

Пытаюсь забрать данные из SQL таблицы что б отобразить их на странице представления. Есть следующий код, который впринципе считывает данные из базы данных:

SqlConnection connection = new SqlConnection(VV);
    using (connection)
    {
        //LIMIT 5 DESC from ID which shows last 5 work outs 
        SqlCommand myCommand = new SqlCommand("SELECT * FROM Strength",
                                            connection);
        connection.Open();

        SqlDataReader read = myCommand.ExecuteReader();



        if (read.HasRows)
        {
            while (read.Read())
            {
                Id = read["Id"].ToString();
                System.Diagnostics.Debug.WriteLine(Id);

                Weight = read["Weight"].ToString();                    
                System.Diagnostics.Debug.WriteLine(Weight);

                Rep = read["Rep"].ToString();
                System.Diagnostics.Debug.WriteLine(Rep);
            }
        }
        else
        {
            Console.WriteLine("nothing");
        }
        read.Close();
    }</pre>

С помощью вот этого кода я пытаюсь отобразить данные на страничке SQL:

ViewBag.HtmlStr = "

" "tr thWeight(KG) /th th Reps /th /tr" "tr td" TableWeight "/td" "/tr tr td" TableRep "/td /tr /table";

Но в результате всё выводится одной строкой. Есть варианты?

Учитите что ваши данные содержат множество строк и вам стоит добавить каждую строку в вашу таблицу как новую строку

using (connection)
{
  //LIMIT 5 DESC from ID which shows last 5 work outs 
  SqlCommand myCommand = new SqlCommand("SELECT * FROM Strength", connection);
  connection.Open();

SqlDataReader read = myCommand.ExecuteReader();

string result = "

" ""; if (read.HasRows) { while (read.Read()) { Id = read["Id"].ToString(); System.Diagnostics.Debug.WriteLine(Id); Weight = read["Weight"].ToString(); System.Diagnostics.Debug.WriteLine(Weight); Rep = read["Rep"].ToString(); System.Diagnostics.Debug.WriteLine(Rep); result = "" ""; } } else { Console.WriteLine("nothing"); } read.Close(); ViewBag.HtmlStr = result "

Weight(KG)
Reps

" Weight "

" Rep "

";
}

Треугольные скобки зарисовало... По логике подставьте недостающие скобки