
10/11/2004, 15:16
|
| | Fecha de Ingreso: octubre-2004
Mensajes: 79
Antigüedad: 20 años, 5 meses Puntos: 0 | |
necesito ayuda plizzz miren....
sben k tengo un problema con el uploading file....
me dice que hay problemas con los bloques de objeto....
y nose realmente cual puede ser el problema...
Dim savePath As String = "C:\inetpub\wwwroot\...\"
Sub Upload_Click(source As Object, e As EventArgs)
Dim postedFile = uploadedFile.PostedFile
If (postedfile is nothing) Then
Dim filename as string = path.getFileName(postedfile.filename)
Dim contentType As string = uploadedfile.postedFile.ContentType
'Dim contentLength As Integer = postedFile.ContentLength
uploadedfile.postedFile.SaveAs(savePath)
mensaje.Text = postedFile.filename & " arriba"' & _
" <br>tipo documento: " & contentType.tostring() & _
"<br>tamaño documento: contentLength"
else
Dim exc As Exception
mensaje.Text = "no es posible subir el archivo especificado"
End If
End Sub
Line 11: 'Dim contentLength As Integer = postedFile.ContentLength
Line 12:
Line 13: uploadedfile.postedFile.SaveAs(savePath)
Line 14: mensaje.Text = postedFile.filename & " arriba"' & _
Line 15: ' " <br>tipo documento: " & contentType.tostring() & _
en la linea 13 es el error ......
agredeceria que por favor me ayuden a solucionar el problema-.
muchas gracias.... |