如何设置contentType,使用aspx输出vrml类型?

jiyunsun 2008-11-12 11:14:45
使用asp能够成功,但是使用aspx却没有成功。一下是代码,请教。


<%@ Page Language="VB" %>
<script runat="server">
Private Sub Page_Load(sender As Object, e As EventArgs)
Response.ContentType = "model/vrml"
Response.Write("#VRML V2.0 utf8")
Response.Write(Chr(13))
Response.Write("Shape { appearance Appearance {}")
Response.Write(Chr(13))
Response.Write("geometry Box{} }")
End Sub 'Page_Load

</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>dfaf</title>
</head>
<body>
<form id="Form1" runat="server">
</form>
</body>
</html>
...全文
106 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧