I want to draw a table dynamically on html page. Number of rows, number of columns, column names, all such data should be returned by a WCF webservice.
1. How can my webservice serialize and return this data? I have all the required data in dictionaries.
2. How can I render such dynamic table on the html page?
My web service will be giving me the results that I just want to represent in tabular format on the aspx or html page. I will not be dealing with any SQL database tables or rows.
Start with learning the basics of WCF. Here are some great resources (including videos) to warm you up:
http://msdn.microsoft.com/en-us/netframework/first-steps-with-wcf.aspx
Number or rows, number of columns, column names, etc. sounds like you need a DataSet (or a DataTable). DataSets are serializable, and you can return them from your wcf services.
http://msdn.microsoft.com/en-us/library/system.data.dataset.aspx
You said “web page”. You need a web framework. In .Net Asp.Net Web Forms and Asp.Net MVC3 are some examples of frameworks you may use. If this is just a single page, I suggest using a simple aspx page (web form). Otherwise MVC3 is best suited.
Good introduction here: http://www.w3schools.com/aspnet/aspnet_intro.asp