server-side call js

3 posts, 1 answers
  1. Liz Danniel
    Liz Danniel avatar
    3 posts
    Member since:
    May 2010

    Posted 28 May 2010 Link to this post

    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. Answer
    Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 01 Jun 2010 Link to this post

    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.
  3. Liz Danniel
    Liz Danniel avatar
    3 posts
    Member since:
    May 2010

    Posted 02 Jun 2010 Link to this post

    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.
Back to Top