Hi Luis:
I tried your code and it works, however, it contains only 1 view. Have you tried your code with several views in it?
Here is my code:
<%@ Page Language="C#" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(1000);
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = DropDownList2.SelectedIndex;
}
</
script>
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
<atlas:ScriptManager ID="sm1" EnablePartialRendering="true" runat="server"></atlas:ScriptManager>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" CssClass="comboxxx">
<asp:ListItem Value="0">Main Form</asp:ListItem>
<asp:ListItem Value="1">Sub Form</asp:ListItem>
</asp:DropDownList>
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
<atlas:UpdatePanel ID="up1" Mode="Conditional" runat="server">
<ContentTemplate>
<atlas:UpdateProgress ID="progress1" runat="server">
<ProgressTemplate>
Updating....
</ProgressTemplate>
</atlas:UpdateProgress>
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</ContentTemplate>
</atlas:UpdatePanel>
</asp:View>
<asp:View ID="View2" runat="server">
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:View>
</asp:MultiView>
</form>
</body>
</html>
===========
Running this page will pop up an Message box saying:
Assertion Failed: Could not find an HTML element with ID "ctl00_mainContentPlaceHolder_progress1" for control of type "Sys.UI.Control"
Please give me a feedback if you can confirm this... ![Smile [:)]](/emoticons/emotion-1.gif)