Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What will be the event name for checkbox checked event while using ajax trigger asynchronous call?

<asp:ScriptManager ID="ScriptManager1" runat="server"/>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <Triggers>
          <asp:AsyncPostBackTrigger ControlID="chkStaySignedIn" EventName="Checked" /> 
      </Triggers>
      <ContentTemplate>
         <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtPassword"/>
     </ContentTemplate>
 </asp:UpdatePanel> 

EventName="Checked" Can anyone provide me a link to complete list of event names while using ajax.

like image 454
Shantanu Gupta Avatar asked Nov 23 '09 16:11

Shantanu Gupta


People also ask

What is postback trigger in UpdatePanel?

Description. <asp:AsyncPostBackTrigger> Specifies a control and event that will cause a partial page update for the UpdatePanel that contains this trigger reference. <asp:PostBackTrigger> Specifies a control and event that will cause a full page update (a full page refresh).

What is trigger in UpdatePanel?

By using Ajax updatepanel we can refresh only required part of page instead of refreshing whole page. Ajax updatepanel contains property called UpdateMode this property is used to specify whether UpdatePanel is always refreshed during a partial render or if it refresh only when a particular trigger hit.

What is UpdatePanel?

UpdatePanel controls are a central part of AJAX functionality in ASP.NET. They are used with the ScriptManager control to enable partial-page rendering. Partial-page rendering reduces the need for synchronous postbacks and complete page updates when only part of the page has to be updated.


1 Answers

The checkbox's event name is CheckedChanged

It isn't a definitive list by any means, but this MSDN page lists the default event names for common controls that post back.

like image 197
Phil Jenkins Avatar answered Sep 22 '22 06:09

Phil Jenkins