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

server-side call js

2 Answers 75 Views
Window
This is a migrated thread and some comments may be shown as answers.
Liz Danniel
Top achievements
Rank 1
Liz Danniel asked on 28 May 2010, 01:50 PM
I used the following code to call JS to refresh my grid,But it does not work sometimes.it remend me that :can not find object "AddRebind".
I do not know why.
string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(AddRebind);</script>"
ScriptManager.RegisterStartupScript(thisthis.GetType(), "AddRebind", script, false); 
But the function AddRebind is written in my aspx page.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petio Petkov
Telerik team
answered on 01 Jun 2010, 11:47 AM
Hello,

The code seems to be fine, and I can't tell you for sure what can cause this error. Could you please explain your goals in more details? Also send us the full source code of the page or a fully working project, which will help us to reproduce the problem locally. Once we receive it, we will do our best to help you.

Regards,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Liz Danniel
Top achievements
Rank 1
answered on 02 Jun 2010, 05:49 AM
Hi:
   Thank you ,I solved the problem ,the problem is that  the javascript code block must be displayed on the top of a body tag.but I set them at the end of this tag.
Tags
Window
Asked by
Liz Danniel
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Liz Danniel
Top achievements
Rank 1
Share this question
or