mayur pandit

mayur pandit

  • 1.4k
  • 331
  • 61.2k

html bootstrap Datatable is not working in aspx page.

Nov 29 2018 8:57 AM
I have use html jquery bootstrap datatable for sorting and serching data in my project.
I have retrive all the html datatable code from c# code using ajax and trying to add in div.
but datatable is not working functionally. there is not serch textbox and pagignation showing in view.
but when i add this datatable directly in aspx page insted of retrive datatable code from c# it's working fine.
I think when i retrive datatable html code from c# code browser not consider as html code.
I have use below javascript code for add datatable html code in div.
document.getElementById("tbl").innerHTML = obj;
 
Kindly help. 

Answers (2)