Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using Pie.htc(http://css3pie.com/) file that enable Css3 in IE8. when i navigate my page to a HTML file every things is OK:
C#
webbrowser.Navigate("url address");//OK

but when i use:
C#
webbrowser.DocumentText=myhtmlcontent;

it's return an error "access denied to PIE.htc"
i search a lot but no success
Html Code(test page)

HTML
 <html>
    <head>
    <style type="text/css">
    .Highlight
    {
border: 1px solid #696;

text-align: center;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 2px 3px;
-moz-box-shadow: #666 0px 2px 3px;
box-shadow: #666 0px 2px 3px;
background: #EEFF99;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33));
background: -webkit-linear-gradient(#EEFF99, #66EE33);
background: -moz-linear-gradient(#EEFF99, #66EE33);
background: -ms-linear-gradient(#EEFF99, #66EE33);
background: -o-linear-gradient(#EEFF99, #66EE33);
background: linear-gradient(#EEFF99, #66EE33);
-pie-background: linear-gradient(#EEFF99, #66EE33);
behavior: url(/PIE.htc);
    }
    </style>
    </head>
    <body>
    <p class="Highlight">asd <span >asd</span> as d sad  </p>
    </body>
    </html>
Posted
Updated 13-Oct-12 20:20pm
v3

1 solution

It's a third party related issue. I would suggest you to first look at their documentation and if needed look/post at their forum. You will have better audience to look and reply your question there.

Try here:
css3pie - documentation[^]
css3pie - forum[^]

In Documentation, look at "Same-domain limitation" mentioned leading to similar error you are getting.
 
Share this answer
 
Comments
[no name] 15-Oct-12 1:08am    
Thanks.
Sandeep Mewara 15-Oct-12 12:48pm    
Welcome.

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