473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Including content in a View in MultiView

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
1 4095
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dianna | last post by:
Hi, I have a multiview that consists of 2 views. I am trying to put to buttons on the top so that the user can toggle between views. Problem: There does not seem to be any absolute...
0
by: Cetin | last post by:
Hi, I have a problem with the MultiView control. Hopefully you can help me. I made a asp page with a MultiView on it. The MultiView has three views (with some controls). I made a method that...
2
by: Alexander van Doormalen | last post by:
I have a MultiView control with 2 Views in it. In the first View I have a form which contains sereral input controls and a custom UserControl. In this custom UserControl I have a button which...
5
by: tarscher | last post by:
Hi all, I create a set of text-boxes based on user input: for (int i = 0; i < Convert.ToInt16(keywordsDropDownList.Text); i++) { myTextBox = new TextBox(); myTextBox.Columns = 5;...
4
by: cvijaykrishna | last post by:
hi, i am having an apllication which has a multiview if i check one checkbox in a view other checkboxin another view should get checked . i am using server side script and getting it but for...
1
by: pbd22 | last post by:
Hi. In view "firstView" I have some HTML. When I transition to "secondView", the "firstView" HTML is still there when I view source even though the "secondView" HTML has been rendered on the...
2
by: pbd22 | last post by:
Hi. Has anybody seen this? I have three views in a multivew: <asp:MultiView runat="server" ID="multiView" ActiveViewIndex="0"> <asp:View runat="server" ID="loginView"> and so on.
0
by: wfsmith | last post by:
I have a page with a MultiView control and 6 Views. Each view has a User control that contains various form controls (dropdowns, textboxes and CascadingDropDown Ajax.Net controls). When the...
5
by: Murray | last post by:
Forgive me if this question is too basic, but I'm new to ASP.NET programming, and I can't locate a simple answer to this question. I have a web page that consists of a Master Page and a single...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.