Guest User

Untitled

a guest
Jan 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
  3. <link rel="Stylesheet" href="../../rrhh/Planilla/complementos/bootstrap.min.css" />
  4.  
  5. <link rel="Stylesheet" href="../../rrhh/Planilla/complementos/bootstrap.min.css" />
  6. <script src="dropzone.js"></script>
  7. <link rel="stylesheet" href="dropzone.css">
  8.  
  9. Imports System.Data.SqlClient
  10. Imports System.Data
  11. Imports System.IO
  12. Imports System.IO.Stream
  13. Imports System.Net
  14. Imports System.Web.Script.Serialization
  15. Imports System.Web.Caching
  16.  
  17. Partial Class Monitoreo_FrmUploadNovedadesMonitoreo
  18. Inherits System.Web.UI.Page
  19. Private Sd As New clsSanDiego
  20. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  21. Try
  22. getImagen()
  23. Catch ex As Exception
  24. Sd.F_Error(ex.Message, LblErrorMensaje)
  25. End Try
  26. End Sub
  27. Private Sub getImagen()
  28. Try
  29. For Each s In Request.Files
  30. Dim file As HttpPostedFile = Request.Files(s)
  31. Dim filename As String = file.FileName
  32. Dim fileextension As String = ""
  33.  
  34. If Not String.IsNullOrEmpty(filename) Then
  35. fileextension = Path.GetExtension(filename)
  36. Dim savedFileName = Path.Combine("C:Temp", Guid.NewGuid().ToString() + fileextension)
  37. file.SaveAs(savedFileName)
  38. End If
  39. Next
  40. Catch ex As Exception
  41. Sd.F_Error(ex.Message, LblErrorMensaje)
  42. End Try
  43. End Sub
  44. End Class
Add Comment
Please, Sign In to add comment