Sharepoint web表单提交感谢邮件问题

Sharepoint web表单提交感谢邮件问题,sharepoint,sharepoint-2010,webforms,page-lifecycle,Sharepoint,Sharepoint 2010,Webforms,Page Lifecycle,我有一个包含简单web表单的web部件。提交web表单后,用户会看到一条感谢或错误消息 它位于单击事件的codeBehind中: lblMessage.Text = "Your Profile Details were updated successfully"; 和asxc文件中的代码: <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label> 问题在于,刷新页面后,消息不会消失。当您点击F5时

我有一个包含简单web表单的web部件。提交web表单后,用户会看到一条感谢或错误消息

它位于
单击事件的codeBehind中

lblMessage.Text = "Your Profile Details were updated successfully";
和asxc文件中的代码:

<asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>


问题在于,刷新页面后,消息不会消失。

当您点击F5时,这会将页面刷新到原始状态,此时标签上没有显示的任何文本。标签包含该文本的唯一方法是通过按钮单击事件

看起来您需要阅读页面生命周期和视图上的一些信息 声明: