PC Review


Reply
Thread Tools Rate Thread

Including content in a View in MultiView

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      27th Aug 2007
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.

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      27th Aug 2007
"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...

> Is there something I am missing or forgetting?


Yep, specifically to add runat="server" to the <asp:View> tags:
http://msdn2.microsoft.com/en-us/lib...multiview.aspx


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing TextBox.Text from MultiView.ActiveIndex 0 in MultiView.ActiveIndex 1 Andy B Microsoft ASP .NET 0 29th Dec 2008 05:56 PM
Showing a different .aspx page in each View of a MultiView control phalanx_28@Hotmail.com Microsoft ASP .NET 3 21st Dec 2006 07:45 PM
Switching View inside MultiView control Alexander van Doormalen Microsoft ASP .NET 2 23rd Jul 2006 08:52 AM
MultiView problem: removing one view =?Utf-8?B?Q2V0aW4=?= Microsoft ASP .NET 0 20th Feb 2006 04:26 PM
Multiview/View ASP .NET 2.0/ Positioning =?Utf-8?B?RGlhbm5h?= Microsoft Dot NET 0 25th Jan 2006 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 AM.