I've got a UserControl I use to search for a customer. This UC contains a ScriptManager and an UpdatePanel.
Just for simulation I've created a page containing 2 of my UC's, this generates an error saying :
Only one instance of a ScriptManager can be added to the page.
If I use only 1 UC on the page I'd like to inform the Page that a Customer was selected so I try and raise an (public) event but that results the little error icon on the bottom left corner of IE saying 'error on page' Details: Line:40, char:1 Error:Object expected Code:0URL:http://.../default.aspx
I can imagine that since this selection/postback is done from within an UpdatePanel, the rest of the page cannot be 'reached' by the event and that would cause an error. If I remove the UpdatePanel things work just fine...
What would be a good way for an Atlas enabled UserControl to 'talk' to the page (or UserControl) on wich it is currently begin used.
Regards,
Jurjen.
Hi Jurjen,
To use two UserControls on the same page put the Atlas Script Manager Proxy tag in the Usercontrol insted of ScriptManager tag and add the ScriptManager tag in the page which uses this UserControl. I think this would solve your first problem.
Regarding the second could you please explain in detail what you are doing and what is to be done.
Thanks & Regards,
No comments:
Post a Comment