The following is a simplified version of the ASP.NET Code Generator using a Web interface (the regular version is a standard Windows application). Please follow these steps to generate your code:
<FieldName{OptionalDescription},DataType,IsRequired?,WebControlType>
EXEC GenerateSchema 'YourTableName'