My website needs to output some dynamically generated Javascript but it doesn't run when I AJAX up my controls. I assume because the script element is not connected to the AJAX Manager/Panel.
So I added a RadScriptBlock but I can't for the life of me find out how to add the script to it from the c# server side.
Is this possible?
The last thing I tried was this (but Text is obviously not right),
So I added a RadScriptBlock but I can't for the life of me find out how to add the script to it from the c# server side.
Is this possible?
The last thing I tried was this (but Text is obviously not right),
LiteralControl script = (LiteralControl)radScriptBlock.Controls[0]; |
script.Text = "UpdateMainWindow('" + Session["IdM_btnUpdate_ClientID"].ToString() + "');"; |