asp.net - Control event not firing from within updatepanel -


I go to a listbox that is being updated through a timer and in the form of expected working within an UpdatePanel Is in.

However, I can not bring the selected indicted event to the fire. I think there is something to do with a partial postback, does anyone know what I can do to do this work?

When I take it out of UpdatePanel it works fine even though obviously I can not do partial postbacks

    

UPDATE:

Now try to make changes below, the timer event is still working but not the selected induced event. . I am losing with this

  & lt; ASP: UpdatePanel ID = "UpdatePanel" runat = "Server" ChildrenAsTriggers = "false" UpdateMode = "conditional" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Timer ID = "Timer 1" runat = "server" ontic = "timer 1 ticket" interval = "500" & gt; & Lt; / Asp: timer & gt; & Lt; asp: ListBox ID = "ListBox_JobPositions" runat = "server" height = "750px" width = "300px" Detasorsaidi = "sqlDataSource" DataTextField = "company" DataValueField = "Pid" on-chosen index = "Suchiboksi_jobpojhssiojit Indies" Otopostbak = " True "& gt; & Lt; / ASP: ListBox & gt; & Lt; / ContentTemplate & gt; & Lt; Trigger & gt; & Lt; Asp: AsyncPostBackTrigger ControlID = "timer 1" /> & Lt; / Trigger & gt;   

Here is the list that is inside the ListBacked UpdatePanel, but then it does not work when it is not.

  protected zero listboxes_ozojobs_selected index (object sender, event ergges e) {response. Wyeth ("Test"); }    

You are not receiving this event, that is, your change Event is not due to postback due to your postback timer

The event receives asp.net timer event and not the ListBox event.

To resolve the problem, you should install AutoPostBack to correct. As a change in this data, as soon as a postback will cause the ListBox and its event must be activated

    

Since you have set the UpdateMode to conditional , you also set ChildrenAsTriggers to correct should do. In this way, a postback in the list causes a partial update.

  & lt; asp: UpdatePanel ID = "Apdetpanel" runat = "server" UpdateMode = "Conditional" ChildrenAsTriggers = "true" & gt;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -