protected void Detalle_Click(object sender, EventArgs e) { GridView2.Visible = true; pent.pentagSQL bd = new pent.pentagSQL(); LinkButton lab = (LinkButton)sender; GridViewRow row = (GridViewRow)lab.NamingContainer; //FileUpload fupEv = (FileUpload)row.FindControl("V_ID1"); Label rdb_obs = row.FindControl("V_ID1") as Label; string auxString = rdb_obs.Text; vosID.Text = rdb_obs.Text; int temp = bd.getActionPlan("14", auxString, ConnectionString); //pendiente######## GridView2.DataBind(); //OJO instruccion para eliminar cache del grid SqlDataSource2.SelectParameters["ActPlan"].DefaultValue = temp.ToString(); }
protected void LinkButton2_Click(object sender, EventArgs e) { if (!(sender == null)) { pent.pentagSQL bd = new pent.pentagSQL(); LinkButton lab = (LinkButton)sender; GridViewRow row = (GridViewRow)lab.NamingContainer; //FileUpload fupEv = (FileUpload)row.FindControl("V_ID1"); Label rdb_obs = row.FindControl("V_ID1") as Label; string auxString = rdb_obs.Text; vosID.Text = rdb_obs.Text; //Panel1.Visible = true; int temp = bd.getActionPlan("14", auxString, ConnectionString);//pendiente######## SqlDataSource2.SelectParameters["ActPlan"].DefaultValue = temp.ToString(); } }