my dinamic LoadControl doen´t write reference to ashx file

Last post 03-27-2007 8:33 PM by almanzora. 0 replies.

Sort Posts:

  • my dinamic LoadControl doen´t write reference to ashx file

    03-27-2007, 8:33 PM
    • Loading...
    • almanzora
    • Joined on 03-27-2007, 8:13 PM
    • Posts 1

    hi, this is my first post, I´m new and need a little help with asp.net and ajax.

    I have a placeholder inside a update panel.I´m loading a user control in that placeholder with LoadControl. After that, I can call the server methods [Ajax.AjaxMethod] of my control from javascript code without any problem cause the RegisterTypeForAjax has written the script reference to the ashx file for this control in the html file.

    My problems appear when I change the control loaded and try to load another control in that placeholder. The control loads well but I can´t call any server method from javascript cause the script reference to the ashx file hasn´t been written this time. Could anyone help me with this. I put the RegisterTypeForAjax in that control too.

    Thanks a lot.
     

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