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

Problem with ClientScript.RegisterStartupScript and radblock in javascript call for a popup!!

1 Answer 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hedi
Top achievements
Rank 1
hedi asked on 29 Nov 2011, 07:24 PM
Hello,

i have a problem with calling ClientScript.RegisterStartupScript(this.Page.GetType(), "OpenReport", popupScript);
in a page that contain a radblock, could you help me please, does ClientScript.RegisterStartupScript has any problem with telerik components

thank!


1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 02 Dec 2011, 01:37 PM
Hello Hedi,

I would suggest using the method RegisterStartupScript of the ScriptManager class in order to register client script from the code-behind. You can find attached a sample page, demonstrating the suggested approach.

If the problem persists after applying the new method, please provide a more detailed description of your scenario so that I am able to help accordingly. Also you could assist us by answering the following questions:

1. By radblock do you mean the RadCodeBlock control?
2. You have marked the problem for the RadDock control. Is there such a control on your page, as you haven't mentioned it in the description?
3. Could you provide more information on the exact problem that occurs when calling ClientScript.RegisterStartupScript?

In case you are still unable to resolve your difficulties please modify the attached page in order to reproduce the problem or if this isn't possible, send us a simple, runnable project that isolates your case so that we can inspect it locally and pinpoint the cause.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
hedi
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or