C# Winform中使用WebBrowser,如何把DataSet数据集或DataTable表中的数据传到HTML页面Table表中?同时HTML中的Table行数可以动态增减?

解决方案 »

  1.   

    webbrowser1.document.getElementById....用dhtml的技术把datatable中的数据转化就可以了....动态增减,也是一样的道理createElement romoveNode 等等
      

  2.   

    http://msdn2.microsoft.com/en-us/library/cca2a89k(VS.80).aspx
      

  3.   

    From HtmlElement.InnerHtml Property( http://msdn2.microsoft.com/en-US/library/system.windows.forms.htmlelement.innerhtml.aspx)Use AppendChild or the insertRow and insertCell methods on the unmanaged IHTMLTable interface to add rows and cells to a TABLE.reference
    How to Build Tables Dynamically
    http://msdn.microsoft.com/workshop/author/tables/buildtables.asp
      

  4.   

    webbrowser1.document.documentElement.innerHTML="liu";