S
Steve
Is there a class that will assist with taking existing aspx markup from a
file and creating a sort of tree structure that will allow you to transform
the html layout to code?
Example aspx code:
<asp:Table runat=server>
<asp:TableRow>
<asp:TableCell>
<asp:Label id=mylabel>test</asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
Resulting code:
Table t= new Table();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
Label lbl = new Label();
lbl.Text = "test";
tc.Controls.Add(lbl);
tr.Cells.Add(tc);
t.Rows.Add(tr);
Thanks,
S
file and creating a sort of tree structure that will allow you to transform
the html layout to code?
Example aspx code:
<asp:Table runat=server>
<asp:TableRow>
<asp:TableCell>
<asp:Label id=mylabel>test</asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
Resulting code:
Table t= new Table();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
Label lbl = new Label();
lbl.Text = "test";
tc.Controls.Add(lbl);
tr.Cells.Add(tc);
t.Rows.Add(tr);
Thanks,
S