Hola.
El siguiente codigo no me esta funcionando espero que alguien se de el
tiempo de revisarlos y me pueda ayudar.
private void btnBuscar_Click(object sender, System.EventArgs e)
{
string strJavaScript;
strJavaScript="<script language=javascript>";
strJavaScript+="TipoBusqueda=ServiciosObras";
strJavaScript+="prmsValores=dialogWidth:700px;dialogHeight:500px;center:yes;scrollbars=yes;help=no;status=no;toolbar=no";
strJavaScript+="returnValue=window.showModalDialog(../Busqueda.htm,TipoBusqueda,prmsValores)";
strJavaScript+="if (returnValue != null) {var Ctrl document.all(CtrlId)";
strJavaScript+="if (returnValue!=:) {Ctrl.value=returnValue}";
strJavaScript+="else{Ctrl.value =''}";
strJavaScript+="else{Ctrl.value =''}}";
Page.RegisterClientScriptBlock("Buscar",strJavaScript);
//Page.RegisterStartupScript("Buscar",strJavaScript);
}
Gracias
Leer las respuestas