I'm working on an Asp.net MVC5 application.
I need to write some XML into a textarea, so it could be parsed by some JavaScript later in my project. As of now I have loaded the XML info into a ViewBag and was wondering how I could dynamically set a textarea with this information.
my controller (Index):
XmlDocument doc = new XmlDocument();
doc.Load("C:\\Tasks.xml");
ViewBag.xml = doc.InnerXml();
Thanks, any help will be greatly appreciated.