Display ASP.Net Tables (markup) from VB.Net (code behind) through ASP Literal in PassThrough
I would like to dynamically create ASP tables using VB to dynamically populate the data and provide unique IDs and then assign it to a Literal in Passthrough mode.
How can I go about qualifying my code with quotation marks around ASP parameters and having VB.Net accept/concatinate my string properly? I know the vb is being triggered because I also have a label change.
Sample of my code:
htmlText = "<asp:TableRow ID=""TR1C" & intC.ToString() & """>"CraneTables.Text = htmlText.ToString()(In the ASP page)<asp:Literal ID="CraneTables" Mode="PassThrough" EnableViewState="false" runat="server"></asp:Literal>
I'm not an expert in ASP, so if there is a better way for me to do this can you please provide some examples. I am trying to keep it all in the code behind because I will also be pulling in data from multiple MS SQL queries and have Create/Update/Delete tied into it.