I have "export" button, onclick event creates markup of some current asp.net page's controls (via RenderControl), then I want to wrap this markup into valid html body and give a user as an ordinal html file.
The question is how to accurately and easily gather all css, referenced on current page (it may include axd-resources, link tags and inline styles) and attach this inline to my markup?
What required is to override Render handler for the Page and save its markup into property. Then in UnLoad handler of control to use this property for extracting CSS from it and construct result page markup using RenderControl method without any problem ;)