Update Panel and client script problem.

Last post 10-11-2006 1:35 AM by SlappY789. 5 replies.

Sort Posts:

  • Update Panel and client script problem.

    09-07-2006, 7:48 AM
    • Loading...
    • rajeshaz09
    • Joined on 09-07-2006, 11:36 AM
    • Bangalore
    • Posts 10

    Hi,

    In client side i need to call one javascript function on every postback. i put that in on pageload() function. Before using updatepanel it is working fine. After using atlas updatepanel , after updating client script is not calling. Give me suggesion.

    Filed under: ,
  • Re: Update Panel and client script problem.

    09-18-2006, 9:21 AM
    • Loading...
    • MariusMisi
    • Joined on 09-18-2006, 1:06 PM
    • Posts 1
    I have the same problem and i don t know what to do!If anyoane knows please help us!
  • Re: Update Panel and client script problem.

    09-18-2006, 12:39 PM
    • Loading...
    • ereedstrom
    • Joined on 09-07-2006, 4:31 PM
    • Posts 9
  • Re: Update Panel and client script problem.

    09-21-2006, 2:03 PM
    • Loading...
    • teuchlfex
    • Joined on 07-04-2006, 1:15 PM
    • Posts 6

    Hi, we have the same problem and your solution does not help for our problem.

     In addition we need to render danymically generated JavaScript into the UpdatePanel after each round trip which must be parsed and executed. But it does not. Neither our complex script, nor

    alert("Hello");

    nor

    window.setTimeout(alert("Hello"), 2000);

    We also render some DIVs danymically into a div container in the UpdatePanel (same container for the script block) and the markup is correctly rendered by the browsers, but the script will not be executed. Our complex script contains lots of calls to Walter Zorn's JavaScript vector graphics library: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

     

    Any idea?

     

    Thanks,

    Marco
     

  • Re: Update Panel and client script problem.

    10-04-2006, 2:09 PM
    Answer
    • Loading...
    • AlexL
    • Joined on 09-19-2006, 4:43 PM
    • New York City
    • Posts 33

    In reply to an issue I had, it was suggested that I add a handler to the pageRequestManager propertyChanged event. I used it to reinitialize my client controls after each updatepanel refresh. I think you could use it to call the function you had in the pageload() function. See this post for an example: 

    http://forums.asp.net/thread/1416330.aspx#1417136

  • Re: Update Panel and client script problem.

    10-11-2006, 1:35 AM
    • Loading...
    • SlappY789
    • Joined on 09-29-2006, 2:14 AM
    • Posts 7
    To fire a script AFTER postback, use

    Page.ClientScript.RegisterStartupScript

    from server side

Page 1 of 1 (6 items)
Microsoft Communities
Page view counter