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

Script Error in user Control???

1 Answer 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prathyusha
Top achievements
Rank 1
Prathyusha asked on 05 Oct 2012, 10:50 AM
Hello all,

While executing the application i am getting Script Error in user Control Page.What i am doing in my ASPX.Cs page i have used User Control and again in that user control i have used another user control which is opened through Rad Window.Is it correct thing to use user control in an another user control.

script Error : Object Undefined :

actually process ---> aspx.Cs---> usercontrol1---->(Rad window)user control2

unable to find the solution for the last few hours.Suggest me the best way to get over it

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Oct 2012, 08:49 AM
Hi Prathyusha,

Without knowing the exact error and where it originates it is very difficult to say what is causing it, or to suggest a way to fix it.

What I can advise at this point is that you examine the following resources on working with scripts in a RadWindow, in user controls and with AJAX:
http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html
http://www.telerik.com/help/aspnet-ajax/window-controls-container.html
http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx
http://www.telerik.com/support/kb/aspnet-ajax/general/using-dynamic-unique-names-for-javascript-functions.aspx
http://msdn.microsoft.com/en-us/library/bb338357.aspx

These articles cover most scenarios - adding user controls through AJAX, getting references to the controls and using unique names for the functions.

All the best,
Marin Bratanov
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
Prathyusha
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or