I'm trying to create a form built from a database. It needs to be built in such a way that new form items can be added by a user through an interface (which is simple enough).
I've created a user control (called a "FormItem"). It contains a checkbox and a div. It also allows for a datasource (as a sqldatasource), so if the property "DataSourceID" is set, it will bind to a specific item ID. There is a _hasOnClick property, where if set to true, will toggle the div's visibility when the checkbox is clicked.
There are some instances where the div w/in the user control will need to contain a textbox/dropdownlist/etc., which I'm not going to give the user an option to add in. I'll just have to make a special div for those circumstances and pass it into the user control (which I've done by creating a "SpecialDivID" property (string), casting it as a HtmlGenericControl, and rendering it into the ...
Go to the complete details ...