View Single Post
  #9 (permalink)  
Old April 6th, 2010, 02:22 PM
PeterPeiGuo PeterPeiGuo is offline
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

Your generated javascript contains lines like the following one, and ()[] are mismatched:
Code:
 oTBody.rows[0].cells[0].appendChild(document.createTextNode(1]));
This is generated by the following line, which is easy to fix:
Code:
sb.Append(" oTBody.rows[" + i + "].cells[" + j + "].appendChild(document.createTextNode(" + r[x] + "]));");