top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Updatepanel Triggers

+3 votes
184 views
Generally update panel avoids the post back of the page. But sometimes we may have requirement like for particular button click in the update panel, total page has to refresh. In this type scenario we can use triggers to refresh the total page. Untitled Page
Page Time: <%=DateTime.Now.ToString() %>
As shown above we have button control in the update panel. Without triggers, for each time we click the button, it displays the current time without page refresh. Whenever we register the PostBackTrigger for button btn1, for each button click page will refresh and displays the current time. There are two different types of triggers are there. Those are AsyncPostBackTrigger and PostBackTrigger.Asynchronous post back triggers are used to refresh the page asynchronously and Post back triggers are used to refresh the page normally.
posted Apr 26, 2016 by Shivaranjini

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button

...