title: how to trigger asp.net multiview?
body: <p>I'm still getting my head around asp.net.</p>
  
  <p>I followed some online examples of using multiviews and got them working just fine when I use something like a Menu class as the trigger to select the active view. Having the onClick event makes it pretty easy. </p>
  
  <p>But I can't figure out how to change the emmited code from the Menu control.</p>
  
  <p>I have the following multiview control...</p>
  
  <p></p>
  
  <pre><code>&lt;asp:View ID="0" runat="server"&gt;
  
     &lt;p&gt;view page 1&lt;/p&gt;
  
  &lt;/asp:View&gt;
  
  &lt;asp:View ID="1" runat="server"&gt;
  
     &lt;p&gt;view page 2&lt;/p&gt;
  
  &lt;/asp:View&gt;
  </code></pre>
  
  <p></p>
  
  <p>And I need to have the following structure used to trigger the views.
  (Note: this needs to be what gets emitted to the browser. Not necessarily the literal code in the aspx page)</p>
  
  <pre><code>&lt;a class="button large-plain" href="" &gt;
      &lt;span&gt;
          See page 1
      &lt;/span&gt;
  &lt;/a&gt;
  &lt;a class="button large-plain" href="" &gt;
      &lt;span&gt;
          See page 2
      &lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>For clarification: we have a style sheet provided by an exteranl designer that works with the above markup. If I could just make the triggers asp button controls, or a menu control, it would be easy. But the style sheet doesn't work then, and I'm told the world will end if the style sheet doesn't work.</p>
  
  <p>Can I customise a Menu control so that it outputs this kind of structure? (And if so, how?)</p>
  
  <p>I could just hard code the links that trigger the views (the structure is not going to change). But if I hardcode it, how do I call the onClick event what the links are clicked?</p>