/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using Microsoft.SharePoint.WebControls; //.... //Add Page Status bar statusSetter.AddStatus("Aktiviert", "Daten wurden erfolgreich übertragen.", SPPageStatusColor.Green); this.Controls.Add(statusSetter); //Set JavaScript function to remove Status Bar after 5 seconds string jsFunction = @"<script type='text/javascript'>" + "window.setTimeout(function(){ SP.UI.Status.removeAllStatus(true); }, 5000);" + "</script>"; Page.RegisterClientScriptBlock("RemoveStatusBar", jsFunction);
Comments
