In Focus

Forums - C# Corner

Forum guidelines
Hold On

Hold On

  • 1.3k
  • 272
  • 18k

Post back event does not fire after deployment

Feb 6 2018 8:42 PM
I have a dropdown list with a selected index changed and auto postback set to true inside an update panel. The event fires when I run it on my machine. But after deployment and accessing it through the web, the event doesn't fire. Below is the snippet of my markup:
  1. <div>  
  2.             <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
  3.                 <ContentTemplate>  
  4.                     <asp:Timer ID="Timer1" runat="server"  
  5.                         Interval="240000" OnTick="Timer1_Tick">  
  6.                     </asp:Timer>  
  7.                     <div class="row">  
  8.                         <div class="col-lg-2">  
  9.                             Teacher's name:  
  10.                         </div>  
  11.                         <div class="col-lg-3">  
  12.                             <asp:DropDownList ID="ddlTeacherName" CssClass="form-control" DataTextField="FullName" DataValueField="TeacherID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTeacherName_SelectedIndexChanged"></asp:DropDownList>  
  13.                         </div>  
  14.                         <div class="col-lg-2">  
  15.                             <asp:Label ID="lblTeacherID" runat="server" CssClass="form-control"></asp:Label>  
  16.                         </div>  
  17.                     </div>  
  19.                 </ContentTemplate>  
  20.                 <Triggers>  
  21.                     <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />  
  22.                 </Triggers>  
  23.             </asp:UpdatePanel>  
  24.         </div>  
Any help is very much appreciated. 

Answers (2)


Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now