Thursday, August 11, 2011

Set status bar text using asp.net


 protected void Page_Load(object sender, EventArgs e)
        {         
            // Create a message string
            string strMessage = "This is a message in status bar";
            // Register startup script to show a message in status bar
            this.RegisterStartupScript("SetStatusText", "<script>window.status='" +
                strMessage + "';</script>");
        }

No comments: