you can read the table data and check the ElementType then use if else
<asp:panel runat="server" id="pnl" xmlns:asp="#unknown">
</asp:panel>
for(int i=0;i<datatable.rows.count;i++)>
{
if(DataTable.Rows[i]["ElementType"].ToString()=="TextBox")
{
TextBox txt=new TextBox();
pnl.Controls.Add(txt);
}
else if(DataTable.Rows[i]["ElementType"].ToString()=="Button")
{
Button btn=new Button();
btn.Text=DataTable.Rows[i]["Text"].ToString();
btn.ID=DataTable.Rows[i]["ID"].ToString();
pnl.Controls.Add(btn);
}
........
.........
}