Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

DataList in user control in update panel

$
0
0

Hi guys, I have some problems with this topic.

I have a Page which constains a menu on the top which fires the update panel below. It fires always a user control ie. it add's a user control that contains some complicated element (not always). One of this user controls contains a dataList which has elements on what we click it fires a next update panel in this user control. Like a tree - we have one datalist, after click it shows the depending items on the right etc. Ok. It is done by

<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select">

but this doesn't work in this configuration. The select command doesn't fire any code (I've set a breakpoint on it). It all works if I set it all on a new page, but if it's nested in the manu page it doesn't work. On the user control page_load I've added 

 Sector1DL.ItemCommand += new DataListCommandEventHandler(Sector1DL_ItemCommand);

but still it doesn't help. A see a difference in the data list postback id but I tried to set the ClientId to static and all other options but still no differance, it doesn't fire this event. 

Please help. Thanks

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>