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.