以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  asp.net2005中使用svg(求助)  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=42954)


--  作者:wxytmk
--  发布时间:2/1/2007 1:14:00 PM

--  asp.net2005中使用svg(求助)
asp写的代码,代码如下:
<!-- Filename squarecircle.aspx -->
<%@Page Language="C#" Debug=true%>
<%
Response.AddHeader("Content-Type","image/svg-xml");
int w,h,r;
w=Int32.Parse(Request["w"]);
h=Int32.Parse(Request["h"]);
r=Int32.Parse(Request["r"]);

Response.Write ("<svg>");
Response.Write ("<rect x='10' y='10' width='"+ w +"' height='"+h+"'
stroke='red' fill='blue' />");
Response.Write ("<circle cx='100' cy='40' r='"+ r +"' stroke='red'
fill='blue' />");
Response.Write (" </svg>");
%>
在另外一段asp的代码中嵌入这段代码,然后传入参数,显示svg图形,在安装有vs.net2005的计算机上就不能显示svg图形,只显示一个外框,在没有安装vs.net2005的计算机上就正常,如果将vs.net2005卸载了,就又可以显示正常的svg图形了,不知为何?请各位大侠帮忙! 原文地址:http://www.15seconds.com/issue/030630.htm


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
32.043ms