【问题标题】:Sharepoint web-form submit Thanks Message issueSharepoint 网络表单提交感谢消息问题
【发布时间】:2012-06-08 11:10:57
【问题描述】:

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

它位于Click_event 的代码隐藏中:

lblMessage.Text = "Your Profile Details were updated successfully";

以及asxc文件中的代码:

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

问题是页面刷新后消息并没有消失。

【问题讨论】:

    标签: sharepoint sharepoint-2010 webforms page-lifecycle


    【解决方案1】:

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

    看起来您需要阅读有关页面生命周期的一些信息并查看 状态:

    http://rameshsps2010.blogspot.com/2011/06/sp-and-aspnet-page-life-cycle.html

    http://nishantrana.wordpress.com/2009/02/14/understanding-web-part-life-cycle/

    http://www.sharepointdotnet.com/2012/02/page-lifecycle-events-in-aspnet.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多