hartmacj 0 Newbie Poster

I'm having a problem accessing the ActiveViewIndex property of the Multiviews I have within the FormView, that's within the Repeater control. Does anyone have an idea of how I can do this? Or, does anyone have an idea on if there is a better way to accomplish a formview that repeats for every record I pull in from the database?

Here's a little bit of the aspx page structure

<asp:Repeater>
<ItemTemplate>
<asp:FormView>
<ItemTemplate>
<asp:Multiview ID="ViewItemsMV" ActiveViewIndex="0">
<asp:View id="View1"></asp:View>
<asp:View id="View2"></asp:View>
</asp:MultiView>
</ItemTemplate>
<EditItemTemplate>
<asp:MultiView ID="EditItemsMV" ActiveViewIndex="0">
<asp:View id="EditView1"></asp:View>
<asp:View id="EditView2"></asp:View>
</asp:MultiView>
</EditItemTemplate>
</asp:FormView>
</ItemTemplate>
</asp:Repeater>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.