title: Creating buttons dynamically in MVC 5
body: <p>I need to read data from database and create buttons as much as rowcount on a view dynamically on the pageload.</p>
  
  <p>Also the button text is going to be taken from database too.</p>
  
  <p>i.e; 3 rows in datatable, 3 buttons with their texts from fields in same datatable.</p>
  
  <p>I couldn't manage to find an example to create buttons on page load. Most of the "dynamic buttons" examples I came across are triggered by a button click. </p>
  
  <p>I suppose I'm going to read the data in a <code>[HttpGet]</code> in the controller.There I can get the necessary row count and data, but I have no idea about creating the buttons from that point.</p>