Forums
View unanswered posts | View active topics It is currently Mon Dec 22, 2014 2:29 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,

Salix


Mon Sep 02, 2013 2:14 am
Profile

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:
Code:
 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.Clear();
            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/PIE.htc";  [color=#BF0000] //ur pie url[/color]
            string path = VirtualPathUtility.ToAbsolute(appRelativePath.ToLower());
            Response.AddHeader("Location", path);
            Response.End();
        }
    }


than use the following:
Code:
.tab_body
{
    border-radius:10px;
    behavior:url(CSS3PIE);
}


for more detail´╝Ühttp://css3pie.com/forum/viewtopic.php?f=4&t=97


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

Who is online

Users browsing this forum: No registered users and 6 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.