C# で asp.net を使用して作成された MasterPage があります。これには、私のメニューなどが含まれます。XDocument を動的に作成します。それから私は使用します:
Response.Write(outputDoc);
to display my XDocument as a webpage. It displays as expected, but it overwrites my MasterPage. I really want to put outputDoc in a container on my MasterPage but I can't find a way to do it.
I am completely lost on this. I must be using the wrong terminology, or trying to do this the completely wrong way because I can't find anything remotely relevant using Google.
Thanks for any assistance.