3人对饮

导航

 
   1:  <!DOCTYPE html>
   2:  <html>
   3:  <head>
   4:      <title>@ViewBag.Title</title>
   5:      <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
   6:      <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
   7:  </head>
   8:  <body>
   9:      <div id="header">
  10:          @{Html.RenderAction("Summary", "Cart");}
  11:          <div class="title">
  12:              EStore</div>
  13:      </div>
  14:      <div id="categories">
  15:          @{Html.RenderAction("Menu", "Nav");}
  16:      </div>
  17:      <div id="content">
  18:          @RenderBody()
  19:      </div>
  20:  </body>
  21:  </html>

 

   1:  @model IEnumerable<string>
   2:  @{
   3:      Layout = null;
   4:  }
   5:  @Html.ActionLink("Home", "List", "Product")
   6:  @foreach (var link in Model)
   7:  {
   8:      @Html.RouteLink(link, new { controller = "Product", action = "List", category = link, page = 1 },
   9:      new { @class=link==ViewBag.SelectedCategory?"selected":null}) 
  10:  }
posted on 2013-05-23 22:25  3人对饮  阅读(150)  评论(0编辑  收藏  举报