View Single Post
  #4 (permalink)  
Old Apr 11th, 2007, 15:29
ginzotech ginzotech is offline
Junior Member
Join Date: Apr 2007
Location: Florida
Age: 40
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending objects to the client

Well I kind of see what you are trying to do.

However, in .NET you really don't have to "send" that array to the client. Normally, you would add your array to web controls in your cs file, which would render as html when the page gets sent to the client. For example, if the data is just text data, you could create a label, and add your data to the text property of the data in the cs file.

If you need the data formatted as a table, you could use the HtmlTable, HtmlTableRow and HtmlTableCell objects in your code to create a table in code, then add it to a placeholder control on the page. I have an example of this on my website at http://ginzotechsolutions.com/Dynami...lsArticle.aspx

The bottom line is that you usually do not send raw data to the client. You instead add your data to web controls on the server, and ASP.NET handles rendering them on the client.

Hope this helps!

John Ginzo
GinzoTech Solutions
http://www.ginzotechsolutions.com
Reply With Quote