473,287 Members | 1,834 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,287 software developers and data experts.

MultiView stays at Initial View


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.

The problem is that, when the page loads, the HTML from the INITIAL
view,
the loginView stays. When I view source for other views, it is always
the
loginView HTML.

This is cusing client scripting problems.

Any ides?

Thanks.
Nov 20 '07 #1
2 1984
Your ActiveViewIndex is hard-coded into the control declaration as "0".
Unless you change this on a postback, that's the view you'll always get.
Maybe you have additional code you haven't posted?

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"pbd22" wrote:
>
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.

The problem is that, when the page loads, the HTML from the INITIAL
view,
the loginView stays. When I view source for other views, it is always
the
loginView HTML.

This is cusing client scripting problems.

Any ides?

Thanks.
Nov 20 '07 #2
On Nov 20, 2:08 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:
Your ActiveViewIndex is hard-coded into the control declaration as "0".
Unless you change this on a postback, that's the view you'll always get.
Maybe you have additional code you haven't posted?

--Peter
"Inside every large program, there is a small program trying to get out."http://www.eggheadcafe.comhttp://petesbloggerama.blogspot.comhttp://www.blogmetafinder.com

"pbd22" wrote:
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.
The problem is that, when the page loads, the HTML from the INITIAL
view,
the loginView stays. When I view source for other views, it is always
the
loginView HTML.
This is cusing client scripting problems.
Any ides?
Thanks.
yes, sorry (and thanks for replying).
every time i change a view, i change the ActiveViewIndex attribute
from the server.
So, that shouldn't be the problem. Other ideas?

Thanks
Nov 20 '07 #3

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

Similar topics

0
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...
4
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
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...
0
by: veerleverbr | last post by:
Hi, I want to create an asp.net page with a tabpage. On the tabpage I want to use the WebDateChooser and WebDataInput controls of Infragistics. These 2 controls use a mask to enter a date and...
3
by: Mat | last post by:
Can a multiview be controlled manually from the screen?
0
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...
0
by: cvijaykrishna | last post by:
i am having a web based application and i am having a problem with it pls check it Explanationi am sending a sample code plese see it in VS-2005 FOR BETTER UNFERSTANDING I have a main page...
1
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...
0
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.