title: Dynamic Control in MVC
body: <p>I am working on MVC Application
  The Control name are stored in database like there is 5 rows that contains control name (ex. texbox,dropdown) and i retrieve that data from database on button click using pure MVC</p>
  
  <p>So based on that data i want to create that controls in view</p>
  
  <p>For Demo try it using creating one control in code than assigning it into ViewBag than using that ViewBag value in script but it is not working</p>
  
  <p>Assign HTML tag to variable. =>
  String _str = 'html tag of textbox appears here';</p>
  
  <p>Assign Value into ViewData and trying to user it in View but not working. =>
  ViewData["DynamicControls"] = _str;</p>
  
  <p>Please suggest me the idea want to do it using MVC only.</p>