title: how to display database data in tables in view in mvc
body: <p>In my MVC application am retrieving data from Database. I want to display the retired data in tables. 
  controller code:</p>
  
  <pre><code> public ActionResult MyAccount()
      {
  
          var user = User.Identity.Name;
  
         string sThumbnails = "";
  
          DataSet dsTemplates = new DataSet();
  
          string qryTemplets = "select * from FileInfo where UserName= '" + user + "'";
  
          open_Connection();
          SqlDataAdapter daTemplate = new SqlDataAdapter(qryTemplets, conn);
          daTemplate.Fill(dsTemplates, "FileInfo");
          DataTable dtTemplates = new DataTable();
          dtTemplates = dsTemplates.Tables[0];
  
          foreach (DataRow row in dtTemplates.Rows)
          {
  
              sThumbnails = sThumbnails +  row["FileName"] +  row["Date"] +  row["Time"] +  row["Info"] ;
              ViewData["thumbs"] = sThumbnails;
          }
          close_Connection();
          return View();
      }
  </code></pre>
  
  <p>view code:</p>
  
  <pre><code>    &lt;div id="formleft" style="border-style: solid; border-color: inherit; border-width: 4px; width:550px; height:500px; position:absolute; top: 345px; left: 348px;"&gt;
     &lt;h2 class="heading" style="text-align: center;"&gt;Info&lt;/h2&gt;&lt;%= ViewData["thumbs"] %&gt; &lt;/div&gt;
  </code></pre>
  
  <p>This code displays the data But i want to display it in tabular format.</p>
  
  <p>How can i display the data in tabular format?  </p>