void lbtnParentFolder_Click(object sender, EventArgs e) { String parFolder = PathConverter.GetInstance().GetParentDirectory(path); if (parFolder == this.parentDirectory) { parFolder = PathConverter.GetInstance().GetParentDirectory(parFolder); } Response.Redirect(String.Format("{0}{1}?Path={2}", baseUrl, pageFilename, parFolder)); }