MultiView stays at Initial View

P

pbd22

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.
 
P

pbd22

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top