Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It is funny someone mentions Scott Mitchell, because at a conference I asked him a pretty similar question and he CC'd me on an email to David Fowler who wrote a blog post about the subject. Basically, the answer he gave me was that the ASP.net team has lots of interesting ideas for Controls that will will make problems like these much easier to solve, but they are hard to get into final release builds. One such control was the "SpecialRepeater" which I think about more like a Recursive Repeater.</p> <p>The blog post is here :<a href="http://weblogs.asp.net/davidfowler/archive/2009/03/16/external-itemplates-and-hierarchical-databinding.aspx" rel="nofollow noreferrer">External ITemplates and Hierarchical Databinding</a></p> <p>Basically, you throw an ObjectDataSource on your page, you bind each Question object to your OuterTemplate and then you set the DataSource property on your InnerTemplate to be the QuestionOption property from your original question.</p> <p>This of course assumes you have some kind of data model that will allow you to return a Question object with a property called "QuestionsOptions" or something that is a collection of another type with all the special properties you need.</p> <p>As a side note, the whole thing seems like something that can be handled pretty easily by doing the old "OnDataBound()" trick...and sometimes it can...but that always muddies the code-behind and this control is pretty fancy at making the whole process completely declarative on the .aspx side of things...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload