Cita:
Iniciado por Ricardo_10011323
se que es de maciado tarde la respuest pero derrepente a alguien le sirve todavia.
padre:
protected void cmdListaCliente_Click(object sender, EventArgs e)
{
AbreVentana("AyudaCliente.aspx");
}
private void AbreVentana(string ventana)
{
string Clientscript = "<script>var sValue = window.showModalDialog('" +
ventana +
"', 'SelectValueWindow','dialogWidth:600px; dialogHeight:340px; dialogLeft:100px;'); document.getElementById('txtID_CLIENTE').value = sValue; </script>";
if (!this.IsStartupScriptRegistered("WOpen"))
{
this.RegisterStartupScript("WOpen", Clientscript);
}
}
Hija:
protected void tblAyudaCliente_SelectedIndexChanged(object sender, EventArgs e)
{
// Selecciono la Linea utilizando la propiedad SelectedRow .
GridViewRow row = tblAyudaCliente.SelectedRow;
// Recupero el valor según su ubicación
String ID_CLIENTE = row.Cells[1].Text;
txtLocalizar.Text = ID_CLIENTE;
CierraWindow(txtLocalizar.Text );
}
private void CierraWindow(string valor)
{
string Clientscript = "<script>window.returnValue = '" + valor + "'; window.close();</script>";
if (!this.IsStartupScriptRegistered("WClose"))
{
this.RegisterStartupScript("WClose", Clientscript);
}
}
Si lo necesitan con master Page me pasa la voz. Suerte a todos.
Buen dia Ricardo!!!
de antemano gracias por tu colaboracion, yo estoy buscando el codigo para Master Page, si aun lo tienes y lo puedes compartir te lo agradeceria inmensamente!!!