protected void botonCargarJuegos_Click(object sender, EventArgs e) { String[] lineas; String[] datos; if (fileJugadores.HasFile) { //labelArchivo.Text= System.Text.Encoding.UTF8.GetString(fileJugadores.FileBytes); lineas = System.Text.Encoding.UTF8.GetString(fileJugadores.FileBytes).Split(Convert.ToChar(10)); for (int i = 1; i < lineas.Length; i++) { datos = lineas[i].Split(','); if (datos.Length == 6) { ws.InsertarJuego(datos[0], datos[1], Convert.ToInt32(datos[2].Trim()), Convert.ToInt32(datos[3].Trim()), Convert.ToInt32(datos[4].Trim()), Convert.ToInt32(datos[5].Trim())); } } } else { labelArchivo.Text = "Archivo no encontrado."; } }