protected void btnBuscarProducto_Click(object sender, EventArgs e) { if (txtcodigop.Text == "") { Utils.AddScriptClientUpdatePanel(updBotonEnviar, "showSuccessMessage5()"); return; } try { objDtoMoldura.PK_IM_Cod = Convert.ToInt32(txtcodigop.Text); gvdetalle.DataSource = objCtrMoldura.ObtenerMoldura2(objDtoMoldura, dtoTipoMoldura); updPanelGVDetalle.Update(); gvdetalle.Visible = true; gvdetalle2.Visible = false; UpdatePanel1.Update(); gvdetalle.DataBind(); //ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "muestra1", "muestra1();", true); //Utils.AddScriptClientUpdatePanel(updBotonEnviar, "showSuccessMessage7()"); } catch (Exception ex) { _log.CustomWriteOnLog("RealizarVenta", "Error btncalcular_Click : " + ex.Message); } }