Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2014, 10:38
Avatar de TCL_ZIP
TCL_ZIP
 
Fecha de Ingreso: noviembre-2003
Ubicación: Esporles, Mallorca, España
Mensajes: 690
Antigüedad: 20 años, 5 meses
Puntos: 4
Respuesta: FileUpload en master page

Parece que te falta definir la funcion: btnGuardar_Click
Código C:
Ver original
  1. protected void btnGuardar_Click(object sender, EventArgs e)
  2. {
  3.  
  4.     if (FileUpload1.HasFile)
  5.     {
  6.         using (BinaryReader reader = new BinaryReader(FileUpload1.PostedFile.InputStream))
  7.         {
  8.             byte[] image = reader.ReadBytes(FileUpload1.PostedFile.ContentLength);
  9.  
  10.             ImagenesDAL.GuardarImagen(FileUpload1.FileName, FileUpload1.PostedFile.ContentLength , image);
  11.            
  12.         }
  13.  
  14.         CargarListadImagenes();
  15.     }
  16.    
  17.  
  18. }