473,941 Members | 13,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug in Multiview?!

Hi all,

Maybe I am being stupid or this is a bug and I need some urgent help
please.

I have a web user control with a multiview that has 2 views. I have 3
public properties setup and one of the properties will be used to
identify which view to be set as an active view.

Then on the page I have the following Function that will return a web
user control and the id3 will be used to set the active view.

Private Function GetControl(ByVa l id1 As Integer, ByVal id2 As
Integer, ByVal id3 As Integer) As UserControl
Dim ctrl As ASP.components_ ctrl_ascx = LoadControl("~/components/
ctrl.ascx")
ctrl.id1 = id1
ctrl.id2 = id2
ctrl.id3 = id3
Return ctrl
End Function

Then on the page I have the following code to load the controls to a
placeholder.

Me.plh1.Control s.Add(GetContro l(id1, id2, id3))
Me.plh1.Control s.Add(GetContro l(id4, id5, id6))

The id3 and id6 will be set as a different active view but the problem
is that I only get 1 control added to the page and that's the first
one and I don't understand why!!

If I remove the multiview control and the property that sets the
active view then the 2 controls are added to the placeholder without
any problem!!

If this is not a bug and I am being stupid then can someone please
tell me what I am doing wrong and show me some code in how to fix
this?!!

Thanks a lot

May 21 '07 #1
0 847

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3047
by: needin4mation | last post by:
I wanted easy tabs for my webpage and saw the new MultiView. I read and couldn't tell, but is the MultiView the same as having tabs? Or does MultiView bring everything at once and the user just selects it (a tab?) Thank you.
0
1810
by: Fabuloussites | last post by:
I have a page that has multiview control that has two dropdown lists on it. the dropdown controls ARE NOT inside of the multiview. Each drop down is bound using its own sqldatasource conrtol. The multiview is declared below the dropdown controls on another portion of the page. so, here is the progression.. 1) select a category from drowdown one that is bound using sqldatasource1 2) dropdown2 is populated based on selection or...
0
1816
by: eric.olstad | last post by:
I want to create a web site that can dynamically creates tabs -- like firefox functionality built into a web site. Take a look at this site to get an idea of what I'm looking to do: http://www.krugle.com/demos/Overview5_800.html Now, I'm not looking to copy the entire interface from Krugle, but I am very interested to understand how they are implementing those tabbed panes. It's pretty brilliant because they're dynamic.
0
3433
by: Avon | last post by:
Hi friends, I am very sorry for my not perfect English. I have one question, I am using David Bauer's DynamicControlsPlaceholder to dinamically generate controls and I am tryig to generate MultiViev, at first it working, when I click btn1 I set SetActiveView to viev1 and it's working OK, but when after that I click btn2 and try to set SetActiveView to 2, I receive this error:
1
3247
by: Martin | last post by:
Hi, I have a FormView control with a MultiView control within it's EditItemTemplate (because using a Wizard doesn't maintain two way data binding - MS confirmed bug). Any how, I have the requirement to save my data every time I change view of my MultiView control. So I call FormView.UpdateItem() This works fine, except for having the side effect of putting the
4
3288
by: TMT32 | last post by:
Hi, I try to add multiview in datalist, but how to change multiview's default view page in datalist? Where it is ? datalist1.itemtemplates.itemtemplates.multiview ?? thanks TMT32
2
2691
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 causes a postback. When the click event gets handled I am grabbing the MultiView instance from a parent control (using a recusive method). When i change the active View on this MultiView control nothing happens. The second time you click the button...
0
2412
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile View I want the form populated from there profile on the sql server. The code to save the profile works fine. But when the user logs back in they data doesn't load back to the form. The multiview is located inside the LoginView's Logged-In View ....
1
4126
by: Nathan Sokalski | last post by:
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:
0
1578
by: James Crosswell | last post by:
I noticed something interesting when using the Multiview control and was wondering if someone could shed some light on the inner workings of all of this so I can better understand what's going on here. Basically I'm using the Multiview as a kind of wizard with back/next buttons. At step one, I ask a question... let's say "How old are you?"... and I use the response to this question to determine the contents of the controls on subsequent...
0
10134
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11110
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3505
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.