HtmlTable baseCalendar = new HtmlTable();
HtmlTableRow calendarRow=new HtmlTableRow();
HtmlTableCell calendarCell = new HtmlTableCell();
for(int i=0;i<6;i++){
calendarCell = new HtmlTableCell();
calendarCell.Controls.Add(new LiteralControl(i.ToString()));
calendarCell.Style.Add("color", "red");
calendarRow.Cells.Add(calendarCell);
}
string resutlt=baseCalendar.innerHtml.Tostring();
this line say error:HtmlTable’ does not support the InnerHtml property?????
I hope you want the HTML code for the table you created which cannot be achieved by innerHTML those are valid in case of div, here you should rather use
RenderControlsomething on these lines