Sven Groot said:Where is he loading a .aspx file? I don't see it.
Fact is that raw aspx files are not valid XML, (not just the lines at the top, but any <% %> block including databinding expressions etc.) so you can't do this without modifying the aspx file first.
My bad, I thought he did, but on closer inspection he's loading it via HTTP, so it won't be ASPX by the time it's on his side.
Anyway, that's annoying. I hoped Linq would be more forgiving about invalid XML.