Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > .NET
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #7  
Antiguo 12-11-2004
Avatar de __hector
[__hector] __hector is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Santo Domingo, Rep. Dom.
Posts: 1.075
Poder: 25
__hector Va por buen camino
Trabaja alrededor de esa funcion, dale debug a la pagina, imprime por ahi el contenido del stringbuilder, porque deberia funcionar. El Page.RegisterStartupScript, segun el msdn hace lo siguiente:

Código:
Allows ASP.NET server controls to emit client-side script blocks in the Page.

[Visual Basic]
Overridable Public Sub RegisterStartupScript( _
   ByVal key As String, _
   ByVal script As String _
)

Similar to the RegisterClientScriptBlock method, this method emits the script just before the closing tag of the Page object's <form runat= server> element. The script block is emitted as the object that renders the page is defined, so you must include both tags of the <script> element.

By identifying the script with the key, multiple server control instances can request the script block without it being emitted to the output stream twice.

Any script blocks with the same key parameter values are considered duplicates.

Note   Remember to include HTML comment tags around your script so that it will not be rendered if a requesting browser does not support scripts.
Consulta un poco de la ayuda (no se si delphi traiga documentacion del framework), pero tengo ese codigo trabajando en muchas paginas, registrando scripts que presentan alertas, abren ventanas, etc.
__________________
Héctor Geraldino
Software Engineer
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 06:02:05.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi