title: Can't get multiview control to change views
body: <p>I have a multiview control, that has two views. View1 is the default view, and View2 is the new view. When the end user click a button, I want to change the view to View2. I can't seem to achieve this anyway I go.</p>
  
  <p>ASP.NET Code:       </p>
  
  <pre><code>&lt;asp:MultiView ID="MVOrder" runat="server"&gt;
      &lt;asp:View ID="VOrderNow" runat="server"&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
              &lt;ContentTemplate&gt;
                  &lt;table&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                          &lt;asp:Label ID="LblInfo" runat="server"&gt;&lt;/asp:Label&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                          &lt;asp:Label ID="LblDrink" runat="server"&gt;&lt;/asp:Label&gt;
                          &lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                          &lt;asp:Label ID="LblItemInfo" runat="server"&gt;&lt;/asp:Label&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  &lt;br /&gt;
                  &lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
      &lt;/asp:View&gt;
      &lt;asp:View runat="server" ID="VOrderComplete"&gt;
  
      &lt;table class="auto-style1"&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;
              &lt;asp:Label ID="LblOrderComplete" runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;
              &lt;asp:Label ID="LblOrderNumberAgain" runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;
              &lt;asp:Label ID="LblOrderTimeAgain" runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
      &lt;/asp:View&gt;
  &lt;br/&gt;
  &lt;/asp:MultiView&gt;
  </code></pre>
  
  <p>Button Click Event Code:</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
          {
              //MVOrder.ActiveViewIndex = 1;
              MVOrder.SetActiveView(VOrderComplete);
          } 
  </code></pre>
  
  <p>Page Load Code:</p>
  
  <pre><code>if (!IsPostBack)
  {
      MVOrder.SetActiveView(VOrderNow);
  }
  </code></pre>
  
  <p>Can someone please tell me what I am doing wrong?</p>