Hi,
I have this layout:
<div runat="server" OnClick="ChangeText()" id="button">Ok</div>
<asp:UpdatePanel id="updater" runat="server">
<ContentTemplate>
<div id="text">Hello</div>
</ContentTemplate>
</asp:UpdatePanel>
I would like to have it so that when the button is clicked, the function ChangeText() gets called on the server - that function then updates the label in the UpdatePanel like so...
public void ChangeText() {
text.InnerText = "Goodbye";
}
How do I wire up the button so that it triggers the update for the updater?