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?