0

I'm stumped again on how to proceed with a survey system I am working on. We have database data for matrix sytle questions (rows are various questions, columns are various answer types), where each cell needs to be able hold a different kind of control. We have a database framework for this. The problem comes with how to dynamcially render this onto the screen. We need to be able to control the placement of various answers. My initial thought was having to use a placeholder and write several LiteralControls into it to build the HTML for a table and control the spacing that way. Would it be possible to do this using a GridView instead? I am not sure which one would be the easier method. If there are other possiblities, I could really use the ideas. AJAX is not an option.

This is similar to a question I have previously asked, but this has more to do with the controls on the aspx page, rather than the bare logic behind it.

4

1 回答 1

0

取决于调查中的问题/答案类型。如果每个问题/答案都属于同一类型(例如,多个答案或只有 1 个答案),那么您将使用中继器控件和用户控件。用户控件将适当地显示问题/答案,意思是,将答案呈现为复选框列表(用于多选答案)或仅用于 1 个答案的单选按钮。

于 2008-12-23T21:43:31.547 回答