Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // Page.Trace.IsEnabled = true;
            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null && Request.QueryString["file"] != null)
                {
                    string file = Server.UrlDecode(Request.QueryString["file"].Trim());
                    string id   = Server.UrlDecode(Request.QueryString["id"].Trim());

                    using (ArelleFactTableHtmlRenderer arelleRenderer = new ArelleFactTableHtmlRenderer(file))
                    {
                        var renderedDoc = arelleRenderer.GetViewItemById(id);
                        Response.Write(Server.HtmlDecode(renderedDoc.DocumentNode.InnerHtml));
                    }
                }
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // Page.Trace.IsEnabled = true;
            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null && Request.QueryString["file"] != null)
                {
                    string file = Server.UrlDecode(Request.QueryString["file"].Trim());
                    string id = Server.UrlDecode(Request.QueryString["id"].Trim());

                    using (ArelleFactTableHtmlRenderer arelleRenderer = new ArelleFactTableHtmlRenderer(file))
                    {
                        var renderedDoc = arelleRenderer.GetViewItemById(id);
                        Response.Write(Server.HtmlDecode( renderedDoc.DocumentNode.InnerHtml));
                    }
                }
            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            HiddenFile.Value = "";
            if (Request.QueryString["file"] != null)
            {
                HiddenFile.Value = Request.QueryString["file"].Trim();
            }

            if (!IsPostBack)
            {
                using (arelleRenderer = new ArelleFactTableHtmlRenderer(Utils.PutSlashes(HiddenFile.Value)))
                {
                    arelleRenderer.LoadMenuItems();
                    ListBox1.DataSource = arelleRenderer.MenuItems;
                    ListBox1.DataBind();
                    int nItem = Convert.ToInt32(ListBox1.Items.Count * 17);
                    ListBox1.Height = nItem;
                    ListBox1.Width = 800;
                }
            }
        }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            HiddenFile.Value = "";
            if (Request.QueryString["file"] != null)
            {
                HiddenFile.Value = Request.QueryString["file"].Trim();
            }

            if (!IsPostBack)
            {
                using (arelleRenderer = new ArelleFactTableHtmlRenderer(Utils.PutSlashes(HiddenFile.Value)))
                {
                    arelleRenderer.LoadMenuItems();
                    ListBox1.DataSource = arelleRenderer.MenuItems;
                    ListBox1.DataBind();
                    int nItem = Convert.ToInt32(ListBox1.Items.Count * 17);
                    ListBox1.Height = nItem;
                    ListBox1.Width  = 800;
                }
            }
        }