我把面页定义为index.htm时,用IE打开,能正常显示.但把它定义为index.aspx时,就出错了.
错误提示: 无法显示 XML 页。
使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
-------------------------------------------------------------------------------- 文本内容中发现无效字符。处理资源 'http://localhost/shop/index.aspx' 时出错。第 6行, 位置: 30 <META name="author" CONTENT="面页代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<META name="author" CONTENT="****"/>
<META name="keywords" content="***"/>
<META name="copyright" content="***"/>
<META name="description" content="****"/>
<style type="text/css">
@import url("css/style.css");
</style>
<title>测试</title>
</head><body leftmargin="0" topmargin="0" bgcolor="#000000" width = "776">
//内容省略
</body></html>
为什么会这样??????
错误提示: 无法显示 XML 页。
使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
-------------------------------------------------------------------------------- 文本内容中发现无效字符。处理资源 'http://localhost/shop/index.aspx' 时出错。第 6行, 位置: 30 <META name="author" CONTENT="面页代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<META name="author" CONTENT="****"/>
<META name="keywords" content="***"/>
<META name="copyright" content="***"/>
<META name="description" content="****"/>
<style type="text/css">
@import url("css/style.css");
</style>
<title>测试</title>
</head><body leftmargin="0" topmargin="0" bgcolor="#000000" width = "776">
//内容省略
</body></html>
为什么会这样??????
<HTML>
<HEAD>
<title>ShowFlight</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">.net的页面是这样的,真不明白你为什么要这么做?