Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/10/2005, 13:24
xuan_xavier
 
Fecha de Ingreso: octubre-2005
Mensajes: 1
Antigüedad: 18 años, 7 meses
Puntos: 0
dataGrid Enlazados por hiperlink a un texbox

Por favor una Ayuda.
No puedo editar campos en texbox jalados de un data Grid mediante HyperLink, pareciera que que los datos cargados a un texbox del data grid por medio de un HyperLink estuviera bloqueados y me impiden actualizar dichos datos. Cuando lo edito el dato jalado en el texbox siempre se mantiene y no me agrega o modifica dicho dato: El ejemplo esta en Aspx Net y es el siguiente:

String strcn = ConfigurationSettings.AppSettings["cnSegPoa"];
SqlConnection conexion = new SqlConnection(strcn);
conexion.Open();
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter();

sql= "Update PoaObjGesI set ObjOGIDescrip=@Descrip where OBGid = "+id2+"";

SqlCommand usrCmd = new SqlCommand(sql, conexion);

usrCmd.Parameters.Add("@Descrip", SqlDbType.NVarChar, 150);
usrCmd.Parameters["@Descrip"].Value = TextBox1.Text;

usrCmd.ExecuteNonQuery();
conexion.Close();