0
public ActionResult Details()
{
    XElement xml = 
         new XElement("persoanldetails", from i in dbContext.Personaldetails
                                                   where i.ID == 1 select i);
    return View(xml);
}

I have created an XElement in the controller. It converts my data in the database to xml. Now I want to use this xml object to load the grid in dhtmlx.

How can I retrieve the xml object in the view?

2
  • Would you not just serialise an object and return that to the view. Then you can do what you like with it? Commented May 17, 2012 at 11:48
  • Seems similar to this thread: stackoverflow.com/questions/412331/… Does that answer your question? Commented May 17, 2012 at 12:02

1 Answer 1

0

MvcContrib has an XmlResult

http://mvccontrib.codeplex.com/documentation

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.