8/13/2011 9:22:01 PM
7207
Reputation
956
Total posts
Hey Shawn,
Actually there is a quick solution that you can use right away. The "repeating" part of parts such as ListModule is actually a standard ASP.NET ListView. You can always access all of the underlying functionality using something like this:
<
MonoX:ListModule
runat
=
"server"
ID
=
"list1"
ListName
=
"Test list"
>
<
TemplatedControl
>
<
LayoutTemplate
>
<
asp:PlaceHolder
runat
=
"server"
ID
=
"itemPlaceholder"
></
asp:PlaceHolder
>
</
LayoutTemplate
>
<
ItemTemplate
>
This is my item template. <
a
href='<%# Eval("ItemUrl") %>'><%# Eval("ItemTitle") %></
a
><
br
/><%# Eval("ItemContent") %>
</
ItemTemplate
>
<
AlternatingItemTemplate
>
This is my alternatingitem template. <
a
href='<%# Eval("ItemUrl") %>'><%# Eval("ItemTitle") %></
a
><
br
/><%# Eval("ItemContent") %>
</
AlternatingItemTemplate
>
</
TemplatedControl
>
</
MonoX:ListModule
>
You will probably want to delete the contents of your template file for this control, as it still works, although you are using the standard ASP.NET data binding syntax.
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.