The code you posted doesn't make sense since LbOk_Click requires post-back. In this case, the entire page is displayed again. So you can / should use server side code to display the message.
The proper way to do this is to use an Ajax call. When the Ajax call ends, a message appears. Something like that:
<asp:LinkButton ID="LbOk" runat="server" CssClass="regular" OnClientClick="updateEmployee();" > </asp:LinkButton>
and client code:
function updateEmployee() { if (validateEmployee() { $.ajax({ type: 'POST', url: url, data: data, success: function() {
Ajax server side can be implemented using Ajax-enabled WCF service .
source share