This is a migrated thread and some comments may be shown as answers.

Problems with add javascrip in user control

1 Answer 57 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Teresita
Top achievements
Rank 1
Teresita asked on 23 Jul 2008, 07:23 PM
I want to add javascript in a user control place another user control call in a page with master page. What use RadCodeBlock or RadScriptBlock?. Well I use RadCodeBlock in UserControl1.ascx, but UserControl1 is in another UserControl (UserControl2), now in the Page1.aspx dynamically loading UserControl2 but the javascript added in UserControl1 no appear. What is the problem?. Please help me.


Tere 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 Jul 2008, 11:09 AM

Hello Teresita,

Does the issue appear using the latest version Q2 2008 (2008.2.723) of RadControls for ASP.NET AJAX in your project? The purpose of the RadCodeBlock/RadScriptBlock controls is explained in this section of the documentation:

http://www.telerik.com/help/aspnet-ajax/ajxradscriptblockradcodeblock.html

Additionally, note that you can use the ScriptManager.RegisterStartupScript static method to register client scripts for dynamically loaded components on AJAX request.

Best regards,

Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Teresita
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or