Forums
View unanswered posts | View active topics It is currently Mon Dec 22, 2014 1:45 am



Reply to topic  [ 3 posts ] 
 Pie is not working in .Net 
Author Message

Joined: Tue Jul 20, 2010 1:04 am
Posts: 1
Post Pie is not working in .Net
Tried the following:

Add in web.config:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".htc" mimeType="text/x-component" />
</staticContent>
</system.webServer>

Other solution ( i thought)

Create a new aspx file to include, instead of the pie.htc file, contents was:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PIEWrap.aspx.vb" ContentType="text/x-component" Inherits="css_PIEWrap" %>

<html>
<body>
<%
Response.ContentType = "text/x-component"
Response.WriteFile("PIE.htc")
%>
</body>
</html>

Then in my css i included : behavior: url("css/PIEWrap.aspx")

The rounded borders just didn't load / work at all.

Am i doing something wrong?


Tue Jul 20, 2010 1:07 am
Profile

Joined: Mon Jul 19, 2010 4:46 am
Posts: 34
Post Re: Pie is not working in .Net
Your wrapper shouldn't include <html> and <body> tags -- it's supposed to only set the header and output the contents of the htc file, nothing else.


Tue Jul 20, 2010 2:05 am
Profile

Joined: Thu Jul 15, 2010 1:56 pm
Posts: 34
Post Re: Pie is not working in .Net
A little more info FYI:

An .aspx page is not the appropriate method to serve up non-HTML content. You should be using an .ashx .NET handler, where you have to manually set the content type and the response output.


Wed Jul 21, 2010 1:34 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] 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.