nishant ranjan

nishant ranjan

  • NA
  • 390
  • 0

asp..net & jsonHTML

Feb 17 2014 2:49 AM
i have json stored in hidden field of aspx page.
 
 [{"Field_Control_Id":"txtName","Field_Control_Type":"TextBox","Field_Height":40,"Field_Name":"Name","Field_Width":60,"Field_XPos":100,"Field_YPos":200},{"Field_Control_Id":"txtAddress","Field_Control_Type":"TextBox","Field_Height":20,"Field_Name":"Address","Field_Width":300,"Field_XPos":200,"Field_YPos":300},{"Field_Control_Id":"txtDateOfBirth","Field_Control_Type":"DropDownList","Field_Height":50,"Field_Name":"DOB","Field_Width":250,"Field_XPos":350,"Field_YPos":450}]
 
what i want is a html page should be created based on data in json i.e., if its textBox with controlid txtname then a textbox(input type ... ) should be created in html with id txtname and same for all other data present and then that html should be rendered into panel in aspx page.
how can i do this. what should be approach? 

Answers (1)