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

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 4.71 KB  |  hits: 16  |  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. .net mvc load partialview that contains jquery
  2. <div id="Estudiantes del tutor">
  3.             </br>
  4.             <table style="margin-left:auto; margin-right:auto;">
  5.                 <tr>
  6.                     <th>Código</th>
  7.                     <th>Estudiante</th>
  8.                     <th></th>
  9.                 </tr>
  10.                 <% foreach (var item in Model.Hijos) { %>
  11.                     <tr>
  12.                         <td>
  13.                             <%: Html.Encode(item.PersonaNaturalId.ToString("D8")) %>
  14.                         </td>
  15.                         <td>
  16.                             <%: Html.Encode(item.Nombre +" "+item.ApellidoPaterno+ " "+ item.ApellidoMaterno) %>
  17.                         </td>
  18.                         <td>
  19.                             <%: Html.ActionLink("Editar", "EditarEstudiante", new { tutorId = Model.TutorBE.PersonaNaturalId ,estudianteId = item.PersonaNaturalId }) %>
  20.                               |
  21.                             <%: Ajax.ActionLink("Editar", "EditarEstudiante", new { tutorId = Model.TutorBE.PersonaNaturalId ,estudianteId = item.PersonaNaturalId }, new AjaxOptions { UpdateTargetId = "DatosEstudiante"})%>
  22.                         </td>
  23.                     </tr>
  24.                 <% } %>
  25.             </table>
  26.     </div>
  27.     <br/>
  28.     <br/>
  29.     <br/>
  30.     <div id="DatosEstudiante">
  31.  
  32.     </div>
  33.        
  34. <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
  35.     <link href="../../Content/SiteHeinrich.css" rel="stylesheet" type="text/css" />
  36.     <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
  37.     <script src="../../Scripts/jquery-ui-1.8.8.custom.min.js" type="text/javascript"></script>
  38.     <link href="../../Content/blitzer/jquery-ui-1.8.8.custom.css" rel="stylesheet" type="text/css" />
  39.     <link href="../../Content/VocacionalSite.css" rel="stylesheet" type="text/css" />
  40.     <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
  41.     <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
  42.     <script src="../../Scripts/MicrosoftMvcValidation.debug.js" type="text/javascript"></script>
  43.  
  44. <br /> <%= Html.ValidationSummary("Por favor corrija los errores e intente de nuevo.")%> <%using (Html.BeginForm())  { %> <%: Html.ValidationSummary(true) %> <div id="DatosGenerales">
  45.     <fieldset style="margin-left: auto; margin-right: auto;">
  46.         <legend>Datos generales del estudiante</legend>
  47.         <div id="Nombres del estudiante">
  48.             <div id="Nombre" style="float: left; margin-left: auto; margin-right: auto; width: 250px;">
  49.                 <%: Html.Label("Nombres: ") %>
  50.                 <br />
  51.                 <%: Html.TextBox("Nombres", Model.Estudiante.Nombre, Model.Estudiante.Nombre != null ? new {@readonly ="readonly"} : null )%>
  52.                 <%: Html.ValidationMessage("Nombres","*") %>
  53.             </div>
  54.             <div id="ApellidoPaterno" style="float: left; margin-left: auto; margin-right: auto;
  55.                 width: 250px;">
  56.                 <%: Html.Label("Apellido paterno: ") %>
  57.                 <br />
  58.                 <%: Html.TextBox("ApellidoPaterno", Model.Estudiante.ApellidoPaterno, Model.Estudiante.ApellidoPaterno != null ? new { @readonly = "readonly" } : null)%>
  59.                 <%: Html.ValidationMessage("ApellidoPaterno","*")%>
  60.             </div>
  61.             <div id="ApellidoMaterno" style="float: left; margin-left: auto; margin-right: auto;
  62.                 width: 250px;">
  63.                 <%: Html.Label("Apellido materno: ") %>
  64.                 <br />
  65.                 <%: Html.TextBox("ApellidoMaterno", Model.Estudiante.ApellidoMaterno, Model.Estudiante.ApellidoMaterno != null ? new { @readonly = "readonly" } : null)%>
  66.                 <%: Html.ValidationMessage("ApellidoMaterno", "*")%>
  67.             </div>
  68.         </div>
  69.         <br />
  70.         <div id="Otros datos generales" style="clear: both;">
  71.             <br />
  72.             <script>
  73.                 $(function () {
  74.                     $("#datepicker").datepicker();
  75.                 });     </script>
  76.  
  77.  
  78.  
  79. <div class="demo">
  80.  
  81. <p>Date: <input type="text" id="datepicker"></p>
  82.  
  83. </div><!-- End demo -->
  84.  
  85.  
  86.  
  87. <div class="demo-description" style="display: none; "> <p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p> </div><!-- End demo-description -->
  88.         </div>
  89.     </fieldset> </div>
  90.        
  91. <script>
  92.  $(function ()
  93.  {
  94.     $("#datepicker").datepicker();
  95.  });    
  96. </script>
  97.        
  98. <script type="text/javascript">
  99.    $(document).ready(function ()
  100.    {
  101.      $("#datepicker").datepicker();
  102.    });  
  103. </script>