Guest User

Untitled

a guest
Apr 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. jQuery('#img_dialog').load("~/EquipTrak/GetEquipImages", {}, function(responseText, textStatus, XMLHttpRequest) {
  2. // XMLHttpRequest.responseText has the error info you want.
  3. alert(XMLHttpRequest.responseText);
  4. });
  5.  
  6. jQuery('#img_dialog').dialog('open');
  7. return false;
  8. },
  9.  
  10. <div id="img_dialog" title="Images for <%= ViewData["EquipID"] %>">
  11. <% using (Html.BeginForm("Upload", "File", FormMethod.Post, new { enctype = "multipart/form-data" }))
  12. {%>
  13. <p><input type="file" id="fileUpload" name="fileUpload" size="23"/> </p>
  14. <p><input type="submit" value="Upload file" /></p>
  15. <p></p>
  16. <center>
  17. <ul style="list-style-type:none">
  18. <li><%= ViewData["ImagePath"]%></li>
  19. </ul>
  20. </center>
  21.  
  22. <% } %>
  23. </div>
  24.  
  25. ViewData["EquipID"] = strEquipID;
  26.  
  27. ViewData["ImagePath"] = "/Content/equip_images/sub_hoe1.jpg";
  28.  
  29. return View();
  30. }
Add Comment
Please, Sign In to add comment