AJAX.NET ; Dynalically pushed JavaScript to Updatepanel"s content not executing

AJAX.NET ; Dynalically pushed JavaScript to Updatepanel"s content not executing

am 05.10.2007 11:22:21 von arachnid

Hi all,

I am trying something using ASP.NET AJAX.
Using postback i am adding a JavaScript snippet and a DIV inside a
panel in UPdatePanel.The HTML is shown. The Javascript is written too.
But JavaScript is not working.
















Width="341px">
please click on the button

OnClick="Button1_Click" Text="Button" />




DisplayAfter="0">

delay............................







---------------- CODE BEHIND --------------------

protected void Button1_Click(object sender, EventArgs e)
{
string str = "
HI
";
str += "";
System.Threading.Thread.Sleep(3000);
p.Controls.Add(new LiteralControl(str));

}

============================================================ =====

I am using the general ScriptManager coltrol and UpdatePanel that has
a PANEL having an id 'p'.
>From the server side postback i am changing this panel's HTML to

Hi


I can see the div being parsed by the browser. But the