protected void btnGuardar_Click(object sender, EventArgs e) { try { VOCliente cliente = new VOCliente(txtNombre.Text, txtApellido_paterno.Text, txtApellido_materno.Text, txtCorreo.Text, txtTelefono.Text, txtDireccion.Text, lblUrlFoto.InnerText); BLLCliente.Insertar(cliente); LimpiarFormulario(); Response.Redirect("ListaCliente.aspx"); } catch (Exception ex) { ScriptManager.RegisterClientScriptBlock(this, GetType(), "Mensaje de Error", "alert('Se registró un error al realizar la operación');" + ex.Message, true); } }//End btnGuardar