Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am uploading image on FileUpload OnChange event and it's working fine in Mozilla
but not working in IE
Error: Breaking on JScript Run time error-Access Denied

SQL
function CheckFileUpload()
   {
    document.getElementById('<%= Submit.ClientID %>').click();
   }

My c# function like this

C#
protected void SubmitImageUpload_Click(object sender, EventArgs e)
    {
    } 


Thank U
Posted

1 solution

You seem to be accessing a parent frame from an iframe? If you're getting permission denied issues with jscript runtime it may be a trusted site/cross domain scripting issue, are both domains added to your trusted sites?

Sometimes in IE8 the document.domain isn't set fast enough, I've had to call iframe functions after a timeout before to get it to work - or I get the same issues.
 
Share this answer
 
Comments
dkgawriya21 30-Mar-12 3:21am    
this is not on domain, I'm working on localhost, and I don't call another page javascript function is on my example.aspx page and c# function is on example.aspx.cs page
I'm calling javascript function on FileUpload OnChange event and trying to call c# function by javascript function

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900