科比脚步乔丹:请帮我看下这个aspx的源文件

来源:百度文库 编辑:高校问答 时间:2024/05/07 10:58:49
我在测试服务器看正常,上传到虚拟主机竟然显示的源文件就是下面这个,高手帮我改改吧,我疯了...

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="DataSet1"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_u4me") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_u4me") %>'
CommandText='<%# "SELECT * FROM tMusic ORDER BY musicID ASC" %>'
Debug="true"
></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>why</title>
</head>
<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><%# DataSet1.FieldValue("lyric", Container) %></td>
<td>topic<%# DataSet1.FieldValue("topic", Container) %></td>
<td><%# DataSet1.FieldValue("singer", Container) %></td>
</tr>
</table>
</body>
</html>

ASPX必须是要运行在支持asp.net的平台上,你所购买的虚拟主机没有支持.net,当然显示的是源代码啊!

把Microsoft.NET Framework v1.1 装在虚拟主机上试试