View unanswered posts | View active topics It is currently Sun Oct 20, 2019 7:40 am

Reply to topic  [ 2 posts ] 
 PIE doesn't work in .aspx files 
Author Message

Joined: Mon Sep 02, 2013 2:11 am
Posts: 1
Post PIE doesn't work in .aspx files
Hi everybody,

I got this one qustion: how can I run CSS3 PIE in a .aspx file.
If I rename the file to .html it all works just fine but in a .aspx file it doesn't.

kind regards,


Mon Sep 02, 2013 2:14 am

Joined: Tue Oct 15, 2013 10:36 am
Posts: 1
Post Re: PIE doesn't work in .aspx files
It Cuz by a err url
try this
add to Global.asax:
 protected void Application_BeginRequest(Object sender, EventArgs e)
        string inboundURL = (Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.Url.AbsolutePath);

        // Add Response Redirection for requests to the PIE htc behavior for CSS3 Support in IE below 9
        if (Regex.IsMatch(inboundURL, "CSS3PIE"))
            Response.Status = "301 Moved Permanently";
            // The path entered here should be the App-relative path to the PIE HTC Behavior.
            // We've forced it to all lowercase because I'm also forcing all lowercase urls in my application
            // via 301 redirects so if you do the same it won't cause multiple redirects
            string appRelativePath = "~/css/";  [color=#BF0000] //ur pie url[/color]
            string path = VirtualPathUtility.ToAbsolute(appRelativePath.ToLower());
            Response.AddHeader("Location", path);

than use the following:

for more detail´╝Ü

Tue Oct 15, 2013 10:42 am
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.