By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,137 Members | 2,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,137 IT Pros & Developers. It's quick & easy.

Including content in a View in MultiView

P: n/a
When I include a MultiView control in my application, I receive the
following error:

MultiView cannot have children of type 'Label'. It can only have children
of type View.

I receive the same error (with 'Label' replaced with another control type)
when I use other control types as well. The only type of control that is an
immediate child of my MultiView control is View. The basic layout of my
MultiView control is:

<asp:MultiView ID="mvwDetails" runat="server" ActiveViewIndex="0">
<asp:View>
'the controls that I want displayed for this View
</asp:View>
<asp:View>
'the controls that I want displayed for this View
</asp:View>
<asp:View>
'the controls that I want displayed for this View
</asp:View>
<asp:View>
'the controls that I want displayed for this View
</asp:View>
</asp:MultiView>

If I cannot place anything inside the View tags, how am I supposed to use
MultiView? Is there something I am missing or forgetting? If somebody could
please help me, I would appreciate it. Thanks.

Aug 27 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Is there something I am missing or forgetting?
Yep, specifically to add runat="server" to the <asp:Viewtags:
http://msdn2.microsoft.com/en-us/lib...multiview.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 27 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.