Im creating a page generator for ASP page. It takes XML input, and then converts it into ASPX representation.
During the process of conversion, here's some code i used,
var page = new Page();
var pnlUpdate = new UpdatePanel();
page.Controls.Add(pnlUpdate);
Theoritically, it should creates ASP file like this,
<% Page ...>
....
....
<asp:UpdatePanel>
</asp:UpdatePanel>
How do i get the source representation of my programmatically created page object? Using Filter or catching the HttpRespose output gives me the parsed HTML output, not the ASP one.