This project is read-only.

Usage of Code

Oct 2, 2009 at 1:07 PM
$(document).ready(function() {
//Place jQuery code here for elements selected outside the update panel
$('#<%=UpdatePanel1.ClientID %>').panelReady(function() {
//Place jQuery code here for elements selected inside the update panel
$('# <%=Button1.ClientID %>').click(function() {
alert('button clicked!');
});
});
});


<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button1" /><br />
<asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>