Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/09/2008, 12:58
javidev
 
Fecha de Ingreso: julio-2006
Ubicación: Mexico
Mensajes: 3
Antigüedad: 17 años, 9 meses
Puntos: 0
De acuerdo Respuesta: Sobre fileupload

Hola:

Prueba con esto:

If file_Adjuntar.PostedFile.ContentLength > 3145728 Then Return "E-El archivo tiene un tamaño superior a los 3MB.(" + _
file_Adjuntar.PostedFile.ContentLength & ")"

De esta forma puedes validar el tamaño antes de cualquier cosa.

Saludos