Generic Control Builder in ASP.Net

by Mwwhited 29. August 2009 12:08
In response to a question on StackOverFlow I posted a response about possibly using the ControlBuilder class in ASP.Net to get around the lack of generic control support in the ASP.Net designer.  While it may be possible to use the ControlBuilder to dynamically generate controls based on inputs.  Having it work as simply as a generic wrapper seem like it will require a pretty in-depth dive in reflection and the ASP.Net control model.  Because the person asking the question was pri... [More]

Tags: , ,

Programming

XmlResult for ASP.Net MVC

by Mwwhited 7. June 2009 05:06
Not sure why Microsoft didn't include a ActionResult that supported XML but here you go. This version will directly support XNode, XmlNode, Data Contracts, and then try to use the standard XmlSerializer. Enjoy... using System; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Web; using System.Web.Mvc; using System.Xml; using System.Xml.Linq; using System.Xml.Serialization; using WhitedUS.Common; namespace WhitedUS.Web.Mvc { public class ... [More]

Tags: , , ,

Programming

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

RecentPosts

Badges