protected void Page_Load(object sender, EventArgs e)
        {
            string ldapQuery = HttpUtility.HtmlDecode(this.Request["LDAPQuery"]);

            try
            {
                try
                {
                    this.searchResultCollection = DirectoryServicesWebUtils.ExecuteLDAPQuery(ldapQuery);
                }
                catch (System.Runtime.InteropServices.COMException cex)
                {
                    //http://brennan.offwhite.net/blog/2005/07/22/firefox-authentication-with-ntlm/
                    this.ShowError("NTLM Authentication failed.\r\nIf you are using a browser like FireFox type 'about:config' in the url and add to the 'network.negotiate-auth.trusted-uris' the <IIS-Server-Name>.\r\nFinally Close and re-open your browser.\r\n\r\nError:\r\n" + cex.Message);
                }
                this.Text        = String.Format("LDap Query Result: {0}", Utility.QuoteJScriptString(ldapQuery, false));
                this.Title       = this.Text;
                this.Description = this.Text;
                string nowaitpanel = this.Request["nowaitpanel"];
                if (String.IsNullOrEmpty(nowaitpanel))
                {
                    if (!Page.IsPostBack)
                    {
                        this.showWaitPanelNow(this.pnlWait, this.LDAPQueryResultPanel);
                        this.RegisterEndClientScript("window.location='" + this.Request.RawUrl + "&nowaitpanel=true'");
                    }
                }
                else if (nowaitpanel == "true")
                {
                    this.LDAPQueryResultPanel.Visible = true;
                    this.pnlWait.Visible = false;
                    if (!Page.IsPostBack)
                    {
                        this.RefreshActiveDirectoryObjectsList();
                    }
                }
            }
            catch (Exception ex)
            {
                this.ShowError(ex.Message);
            }
        }