I have a web-part that includes a simple web form. After submitting the web form, the user sees a thank you or an error message.
It is in a codeBehind on Click_event
:
lblMessage.Text = "Your Profile Details were updated successfully";
And code in the asxc file:
<asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
The problem is that the message doesn't disappear after the page is refreshed.