Hi,
I have created a usercontrol which is sometimes used more than once on a particular page. If I only have 1 instance of the control, e.g:
As you can see, the reference to ctl01_ImageLibrary1_LoadingPanelFull should actually be ct01_ImageLibrary2_LoadingPanelFull.
Now if I wireup the AjaxSettings dynamically/programmatically, it works fine and will use the relevant loading panel, however when I try the ASP.NET I get the above result.
I have created a usercontrol which is sometimes used more than once on a particular page. If I only have 1 instance of the control, e.g:
<
uc1:imagelibrary id="Imagelibrary1" runat="server" ControlType="Images" DefaultTab="Page" Category="Facilities" Type="ParkImage" Title="Facility Images" />
Then it works fine. If I have 2 or more, all the subsequent controls use the 1st controls LoadingPanel, instead of it's own. You can see by the code that it spits out:
UpdatedControls : [{ControlID:"ctl01_Imagelibrary2_ajaxPanelDataList",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_dlImages", UpdatedControls : [{ControlID:"ctl01_Imagelibrary2_ajaxPanelPaging",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_pager", UpdatedControls : [{ControlID:"ctl01_Imagelibrary2_ajaxPanelDataList",PanelID:"ctl01_Imagelibrary1_LoadingPanelFull"}]},{InitControlID : "ctl01_Imagelibrary2_lnkPage" |
As you can see, the reference to ctl01_ImageLibrary1_LoadingPanelFull should actually be ct01_ImageLibrary2_LoadingPanelFull.
Now if I wireup the AjaxSettings dynamically/programmatically, it works fine and will use the relevant loading panel, however when I try the ASP.NET I get the above result.