Generate a form from an object in ASP.NET
<p>Are there any tools available for ASP.NET that will let you generate a form from an object.</p>

<pre><code>CoolLibrary.GenerateFormFromObject(myObject);
</code></pre>

<p>I can imagine using reflection to bind to various controls, and using the type of fields to determine what type of control to generate (ie if <code>List</code> then generate a <code>DropdownList</code> control). </p>

<p>Has anyone built anything like this? (Am I mistaken in thinking this isn't too hard to do?). I see references on the web of people using reflection to bind to forms, but I haven't found anyone generating forms using reflection. </p>
