Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 1.59 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Render Partial View using Jquery and MVC
  2. <html lang="en" <% = ClientStyle.GetMicrodataNamespaces() %>>
  3.     <% Html.RenderPartial("Slideshows/Head"); %>
  4.  
  5.     <body class="ss-msnbc">
  6.         <div id="header">
  7.             <div class="container">
  8.                 <% Html.RenderPartial("Slideshows/Logo"); %>
  9.                 <div id="slideshow-title">
  10.                     <h2><%=Model.Title%></h2>
  11.                 </div>
  12.                 <ul id="tabs">
  13.                     <% Html.RenderPartialForEach("Slideshows/TabNavigator", Model.TabNavigators); %>
  14.                 </ul>
  15.             </div>
  16.         </div>
  17.         <div id="bantop">
  18.             <div class="container">
  19.                 <div id="slide-nav">
  20.                     <ul id="next-prev">                
  21.                         **<li class="btn prev-dis"><a id="prevslide" href="#" title="Previous">&nbsp;</a></li>
  22.                         <li class="btn next-dis"><a id="nextslide" href="#" title="Next">&nbsp;</a></li>**
  23.                     </ul>
  24.                     <% foreach(var slideNavigator in Model.SlideNavigators) { %>
  25.                         <ul class="slide-numbers" style="display:none;" id="navigator_<%=slideNavigator.TabIndex%>">
  26.                             <% Html.RenderPartial("Slideshows/SlideNavigator", slideNavigator); %>
  27.                         </ul>
  28.                     <% } %>
  29.                 </div>
  30.                     <% Html.RenderPartial("Slideshows/RelatedLinks", Model); %>
  31.             </div>
  32.         </div>
  33. </body>
  34. <html>
  35.        
  36. $.get('controler/action',{parameter1:value1,parameter2:value2},function(data){
  37.  $('#header').html(data);
  38. });