asp.net - UserControl causes full postback -


I have a placeholder inside the updated panel. On page_load I load user control via this code:

  control ctrl = LoadControl ("~ / UserControls / ListViewThumbs.ascx"); UcThumbs = (ListViewThumbs) ctrl; UcThumbs.id = "ucThumbs"; UcThumbs.SelectedIndexChanged + = New UserControlSelectedIndexChanged (listView_SelectedIndexChanging); UcThumbs.ItemDoubleClicked + = New UserControlItemDoubleClicked (UserControlDoubleClicked); UcPH.Controls.Clear (); UcPH.Controls.Add (ucThumbs); AsyncPostBackTrigger Trigger = New AsyncPostBackTrigger (); Trigger. ControlIlID = UK UNICID; Trigger. EventName = "ItemDoubleClit"; UpdateMyDocs.Triggers.Add (Trigger); Aspx code:  
  & lt; Asp: UpdatePanel id = "updateMyDocs" UpdateMode = "always" childrenAsTriggers = "true" enabled ViewState = "true" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Placeholder ID = "UKPH" Runat = "Server" & gt; & Lt; / Asp: place holder & gt; & Lt; / ContentTemplate & gt;   

Clicking in Consumer Control causes the whole postback. How can I stop it?

I will instead place the update panel inside the user control.

The update panels have problems like this when you insert user controls inside them

Comments