Author: babji.sunny@gmail.com | Posted on: 3/8/2010 2:36:02 AM | Views : 564

Hi All,
Can any one let me know How to maintain view state for the dynamically added html controls to a table using javascript(Below is the javascript which I am using to add HTML Controls Dynamically"). Because during the postbacks if I found any error while validating the data present in the dynamically added html controls, the controls are loosing their state and again I need to start adding rows and add data. So I request you all to please help me in this regard.
function funAddNew()
    { 
    countE = parseInt(document.frmSelfDecl.hidCounttableOwnSec.value) + 1;
    var x=document.getElementById('tablesec').insertRow(-1);
  var cell1=x.insertCell(0);
  var cell2=x.insertCell(1);
  var cell3=x.insertCell(2);
  var cell4=x.insertCell(3);
  var cell5=x.insertCell(4);
  var cell6=x.insertCe ...

Go to the complete details ...