title: ASP Buttons not working after changing ActiveViewIndex
body: <p>I'm using MultiView to build a multi step form. The next button works on the first step (ViewOne) but then both the next and back buttons do nothing at the next step (ViewTwo).</p>
  
  <p>I don't know if there is any clue in the below code or you need to see more?...    </p>
  
  <pre><code> &lt;asp:MultiView ID="MultiView2" runat="server" ActiveViewIndex="0"&gt;
   &lt;asp:View ID="ViewOne" runat="server"&gt;
   &lt;/asp:View&gt;
   &lt;asp:View ID="ViewTwo" runat="server"&gt;
   &lt;/asp:View&gt;
   &lt;/asp:MultiView&gt;
   &lt;asp:ImageButton ID="btnBack" runat="server" ImageUrl="/assets/back_button.jpg"  OnClick="btnBack_Click" /&gt; 
   &lt;asp:ImageButton ID="btnNext" runat="server" ImageUrl="/assets/next_button.gif" OnClick="btnNext_Click" /&gt;
   &lt;asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="/assets/submit_button.gif" OnClick="btnSend_Click" /&gt;
  </code></pre>
  
  <p>Code behind....</p>
  
  <pre><code>protected void btnBack_Click(object sender, EventArgs e)
      {
          MultiView2.ActiveViewIndex--;
      }
  
      protected void btnNext_Click(object sender, EventArgs e)
      {
          MultiView2.ActiveViewIndex++;
      }
  
      protected void btnSend_Click(object sender, EventArgs e)
      {
          OnSubmitClicked(e);
      }
  </code></pre>
  
  <p>Ok more code...</p>
  
  <pre><code>protected override void OnLoad(EventArgs e)
  {
          base.OnLoad(e);
       PopulateSomeField();
      }
  
  protected override void OnPreRender(EventArgs e)
      {
          btnBack.Visible = MultiView2.ActiveViewIndex &gt; 0;
          btnNext.Visible = MultiView2.ActiveViewIndex &lt; MultiView2.Views.Count - 1;
          btnSubmit.Visible = MultiView2.ActiveViewIndex == MultiView2.Views.Count - 1;
          base.OnPreRender(e);
      }
  </code></pre>