Hi everybody,
I've a page where I call one ASCX twice.
This the page code:
<%@ Register TagPrefix="Ricerca" TagName="Anagrafica" Src="~/PopUp/PUucRicercaAnagrafica.ascx" %>
<!-- some controls -->
<!-- ascx -->
<
Ricerca:Anagrafica
ID
=
"datiContrattoRicercaAnagraficaInsertFornitore"
runat
=
"server"
AllowMultiRowSelect
=
"false"
Titolo
=
"Ricerca Fornitore"
RadWindowObjectListKey
=
"rwPopUpRicercaAnagraficaFornitore"
ParentObjectClientId
=
"ClientID"
OnInitializeComponentComplete
=
"RicercaAnagrafica_InitializeComponentComplete"
OnConfermaRicercaClicked
=
"RicercaAnagrafica_ConfermaRicercaClicked"
OnConfermaRicercaClicking
=
"RicercaAnagrafica_ConfermaRicercaClicking"
/>
<
Ricerca:Anagrafica
ID
=
"datiContrattoRicercaAnagraficaInsertRichiedente"
runat
=
"server"
AllowMultiRowSelect
=
"false"
Titolo
=
"Ricerca Richiedente"
RadWindowObjectListKey
=
"rwPopUpRicercaAnagraficaRichiedente"
OnInitializeComponentComplete
=
"RicercaAnagrafica_InitializeComponentComplete"
/>
I need to use the same ascx two different purpose, so I call the same ascx using different ID, and this is correct, but when I'm going to use ajax the async postback doesn't work for all ascx, but only for last declared.
In my ascx I've RadAjaxMangerProxy, which refresh the ascx controls.
In my aspx I've RadAjaxManager, when I'm going to do a postback from usercontrol, the radajaxmanager doesn't intercept the postback, so the page totally refreshes.
Perhaps the problem is the name of the controls into ascx, when the radajaxmanager register the control override all control with the same ID (server ID), but is not functionally, because it's possible declare different ascx control in the same page, e.g. template.
How can I solve this?
Thanks