asp.net mvc - Best way to retrieve XML data in MVC? -


If I am passing an XElement or XDocument in my ASP.NET MVC view, then the best (read: easy) The way is

thanks,

Matt.

Usually you want a strongly typed model in a function, but if you have XML There is a good reason to take in, so here is the approach that I will take:

Create a custom model builder that will work for you. In ModelBuilder you can loop through the form and get everything and create your excelment. In Global.asax you can specify that whenever you have a type of XElement or XDocument, then you want to use that modelbender.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -