Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/03/2005, 10:47
danielnc
 
Fecha de Ingreso: octubre-2004
Mensajes: 23
Antigüedad: 19 años, 6 meses
Puntos: 0
hola yo lo hice en vb, espero te sirva

If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 Then
Dim fn As String = System.IO.Path.GetFileName(File1.PostedFile.FileNa me)

Dim SaveLocation As String = Server.MapPath("Data") & "\" & fn
Try
File1.PostedFile.SaveAs(SaveLocation)
Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
End Try
Else
Response.Write("Seleccione un Archivo.")
End If

donde file1 es:

<INPUT id="File1" style="WIDTH: 382px; HEIGHT: 22px" type="file" size="44" name="File1" runat="server">