Having trouble injecting Javascript in AJAX enabled page with
am 17.04.2008 20:09:26 von CrystalMikeMD
Greetings,
I've been at this problem for some time now and have decided to seek
out some help.
Essentially, this is what I have. A basic ASP.NET 2.0 page. On this
page is the standard
Re: Having trouble injecting Javascript in AJAX enabled page with
am 17.04.2008 20:54:23 von CrystalMikeMD
I got it.
Use the STATIC method "RegisterClientScriptBlock" instead of the
ClientScriptManager for a control.
Something like this will work globally:
Microsoft.Web.UI.ScriptManager.RegisterClientScriptBlock(Upd atePanel1,
typeof(UpdatePanel),=93TestKey=94, =93alert(=92Test=92);=93, true);
Two days wasted but now I feel better.
Re: Having trouble injecting Javascript in AJAX enabled page with RegisterClientScriptBlock
am 20.04.2008 07:33:02 von DFS
you server injected client to be render from a update panel postback,
you code needs to call the ScripManager.RegisterClientScriptBlock and
this call must be from a control inside the update panel. this is
because only html/script rendered inside the update panel is returned to
the client.
-- bruce (sqlwork.com)
CrystalMikeMD@gmail.com wrote:
> Greetings,
>
> I've been at this problem for some time now and have decided to seek
> out some help.
>
> Essentially, this is what I have. A basic ASP.NET 2.0 page. On this
> page is the standard