MultiView stays at Initial View

  • Thread starter Thread starter pbd22
  • Start date Start date
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.
 
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
 
Back
Top