Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:30:14+00:00 2026-05-30T23:30:14+00:00

This is a strange one as up until very recently this functionality was working

  • 0

This is a strange one as up until very recently this functionality was working fine and is still working on a different site.

I’m using an iframe to allow users to initiate downloads on a page without having to submit the actual page itself using asp.net:

<iframe id="ifrDownload" name="ifrDownload"  scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="display: none;" src="Download.aspx"></iframe>  

However recently when attempting the download I get the infamous “Permission denied to access property ‘document’ error when accessing the iframe, obviously the local file is on the same domain as the parent so I’m not sure why that’s happening, but I’m sure it’s related to the odd thing that happens when I inspect the page in Firebug.

The site that works without any problems displays the following for the iframe when inspected:

<iframe id="ifrDownload" scrolling="no" frameborder="0" src="Download.aspx"  style="display: none;" marginheight="0" marginwidth="0">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> </title>
</head>
<body>
<form id="downloadForm" action="Download.aspx" method="post" name="downloadForm">
<div>
<input id="__VIEWSTATE" type="hidden" value="/wEPDwULLTExNjE3Nzc3MzlkZMnbcG6xJn5Jp/GA7fqNd/QyKuTC" name="__VIEWSTATE">
</div>
<div>
<input id="__EVENTVALIDATION" type="hidden" value="/wEWBgLTi7KCAQLnqqEBAuXC+6cLAoPKgZYKAvWdu+YGApj5qL4FFEFbauoxzxy+93iYHGZSO7dPLso=" name="__EVENTVALIDATION">
</div>

<div>
<input id="downloadButton" type="submit" style="display: none;" value="Confirm Download" name="downloadButton">
<input id="attachmentIdField" type="hidden" name="attachmentIdField">
<input id="tableFieldId" type="hidden" name="tableFieldId">
<input id="filenameField" type="hidden" name="filenameField">
<input id="whichField" type="hidden" name="whichField">
</div>

</form>
</body>
</html>
</iframe>

But the non-working site simply shows:

<iframe id="ifrDownload" scrolling="no" frameborder="0" src="Download.aspx" style="display: none;" marginheight="0" marginwidth="0" name="ifrDownload">
<html>
<head></head>
<body></body>
</html>
</iframe>

The Download.aspx file is pretty much identical for both sites and is in the same directory as the parent page for both, I can only think I’ve inadvertently put some code somewhere that’s breaking the way the iframe works.

Any suggestions? I’ve Linted the HTML and all seems fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:30:15+00:00Added an answer on May 30, 2026 at 11:30 pm

    Ok, after much, much searching; I found the following in a Global.asax file:

    void Application_BeginRequest(object sender, EventArgs e) {
        HttpContext.Current.Response.AddHeader("X-Frame-Options", "DENY");
    }
    

    Which disabled all cross frame options effectively disabling all iframes linking to aspx pages, but not html pages.

    Removing this code which was put in, apparently to stop cross site scripting, fixes the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a strange one. A web application which runs fine on Windows Server
This is a strange one to me. Let me list the setup: Application with
This is a strange one... In a windows forms app (VB.NET/VS 2005) I have
Strange one this, which isn't programming related directly, but I thought it important to
This a bit of strange one.... We have an internal web app that runs
This is a bit of a strange one, but I've been struggling for a
This is a really strange issue. One day my project started to do a
I have this strange issue with my web app. You see, I'm using jQuery
How does this actually come about? I am working in one repo by myself
Everything was working fine in my little project, until I decided to clean up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.