Hi,
I have an problem to execute javascript from asp.net (c# code). I have a page1.aspx that load a usercontrol ctrl.ascx. This control does an ajax request, by loading another page2.aspx, to compute some thing. The html content of page2.aspx is loaded in a div of page1.aspx. The page2.aspx load an userControl where I call ScriptManager.RegisterStartupScript(this, typeof(System.Web.UI.Page), "MyKey", myscript, true).
The problem is that the javascriptscript code is added in the page2.aspx, so it is never executed. I don't have an updatePanel in my page1.aspx, and I can't modify it because i must modify a big project.
Can you help me please, if someone has a solution ?
Thanks.