Contents of a Table
-
Hey all, I'm doing some ASP.NET Programming and dynamically populate an instance of System.Web.UI.WebControls.Table with some data. Afterwards I'd like to give the user the option of "saving" this but System.Web.UI.WebControls.Table does not support an "InnerHtml" property. I tried to put it inside of a DIV (HtmlGenericControl) but when I referenced the InnerHtml property of this I got a different error: Cannot get inner content of [my control] because the contents are not literal. Anyone run into this before? Tips? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
-
Hey all, I'm doing some ASP.NET Programming and dynamically populate an instance of System.Web.UI.WebControls.Table with some data. Afterwards I'd like to give the user the option of "saving" this but System.Web.UI.WebControls.Table does not support an "InnerHtml" property. I tried to put it inside of a DIV (HtmlGenericControl) but when I referenced the InnerHtml property of this I got a different error: Cannot get inner content of [my control] because the contents are not literal. Anyone run into this before? Tips? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
I take it that you are trying to save the html of the table to some file on the server? If this is the case, then you could create a htmlwriter and then call the render on the table control. Then save the stream down to a file.