james

james

  • NA
  • 1
  • 0

refence htmltable object

Mar 24 2007 1:20 PM
I have a web service which returns the results from a sql query as an array. I have a written a class which generates a table layout to represent the data. I added the html table object to a webform. Hence when I pass the pointer to the customclass I need to pass the reference otherwise I have to return the instance stored within the class. However when I use the & operator it gives me the following compile time errors Pointers and fixed size buffers may only be used in an unsafe context can't take the address of, get the size of, or declare a pointer to a managed type ('System.Web.UI.HtmlControls.HtmlTable') Cannot implicitly convert type 'System.Web.UI.HtmlControls.HtmlTable*' to 'System.Web.UI.HtmlControls.HtmlTable' Alternatively I can add the control prgrammatically but how?