web user control changing dynamically
<p>my structure is like this:
master page
  aspx(web form)
    ascx(user control)</p>

<p>I have a master with a menu:</p>

<pre><code>&lt;asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false"
                IncludeStyleBlock="false" Orientation="Horizontal"&gt;
&lt;Items&gt;
            &lt;asp:MenuItem Text="Parameters" Value="Parameters"&gt;
                   &lt;asp:MenuItem NavigateUrl="~/Default.aspx" Text="Default" Value="def" /&gt;
    &lt;/asp:MenuItem&gt;
&lt;/Items&gt;
&lt;/asp:Menu&gt;
</code></pre>

<p>Inside the MenuItem there's got to be a link to these usercontrols that i want to load on my default.aspx</p>

<p>I have to diferent user controls:</p>

<p>user control 1:</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucTest1.ascx.cs" Inherits="ucTest1" %&gt;
&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;asp:Label ID="Label1" runat="server" Text="TEST 1 ASCX"&gt;&lt;/asp:Label&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>user control 2:</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucTest2.ascx.cs" Inherits="ucTest2" %&gt;
&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;asp:Label ID="Label2" runat="server" Text="TEST 2 ASCX"&gt;&lt;/asp:Label&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>here is my Default.aspx</p>

<pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Master/Site.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="Default" %&gt;
&lt;%@ Register Src="~/ucTest1.ascx" TagName="ucTest1" TagPrefix="uc1" %&gt;
&lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server"&gt;
    &lt;uc1:ucTest1 ID="ucTest1" runat="server" /&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>it works good so far but i want to make those menuitems on my master page to switch between these two user controls in the same Default.aspx.
so when i click on test1-menuitem it brings me the ucTest1 into my default.aspx and when clicking the test2-menuitem brings me the uctest2 into my default.aspx too.</p>

<p>i dont know if this can be done. I'd really appreciate your help!</p>

<p>thanks!</p>
