title: Passing a <a> link name in Razor to an integrated site
body: <p>I would like to grab the name of the  link from my menu in the layoutsite and pass it to my content site. To embed different sites depending on the name that is passed after clicking on the menu option, but only need to link to one page.</p>
  
  <p>This is the menu of my layout-site:</p>
  
  <pre><code>&lt;ul id="menu"&gt;
    &lt;li class="cat1"&gt;&lt;a href="~/"&gt;Startseite&lt;/a&gt;&lt;/li&gt;
    &lt;li class="cat2"&gt;&lt;a href=""&gt;Karten &amp;amp; Pläne&lt;/a&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a name="mapGuide" href="~/Menue/menueoptions.cshtml"&gt;MapGuide (neu)&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a name="mapDuideOld" href="~/Menue/menueoptions.cshtml"&gt;MapGuide (alt)&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a name ="cad" href="~/Menue/menueoptions.cshtml"&gt;CAD Plan Archiv&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a name ="sewer" href="~/Menue/menueoptions.cshtml"&gt;Kanalsystem&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;     
  </code></pre>
  
  <p>Thats still part of the layout-site where to content-site will be integrated:</p>
  
  <pre><code>&lt;div id="body"&gt;
          @RenderSection("featured", required: false)
          &lt;section class="content-wrapper main-content clear-fix"&gt;
              @RenderBody()
          &lt;/section&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>This is my content-site:</p>
  
  <pre><code>@{
  Layout = "~/_SiteLayout.cshtml";
  Page.Title = "";
  
  var menu = this.Request.name;
  
  @functions{
      private String forward;
  }
  
  if (menu == "mapGuide")
  {
      forward = "http://xxxxxxxxx";
  }
  else if (menu == "mapGuideOld")
  {
      forward = "http://xxxxxxxxxx";
  } 
  and so on ...
  }
  
  &lt;embed class="pdf" src="@forward"&gt;
  </code></pre>
  
  <p>It's almost working because if i manually type in the name at the section:</p>
  
  <pre><code>var menu = mapGuide;
  </code></pre>
  
  <p>it links perfectly .... the problem is only, all the time ^^
  I hope there is a solution for my problem, would be greatly appreciated ;)</p>
  
  <p>cheers Kuli</p>