错误提示:(大家都试试看)
无法显示 XML 页。
使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
--------------------------------------------------------------------------------Prolog 外部不能有 DOCTYPE 声明。处理资源 'http://localhost/Flash_DotNet/datagrid.aspx' 时出错。第 20 行,位置: 11 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
----------^
无法显示 XML 页。
使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
--------------------------------------------------------------------------------Prolog 外部不能有 DOCTYPE 声明。处理资源 'http://localhost/Flash_DotNet/datagrid.aspx' 时出错。第 20 行,位置: 11 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
----------^
解决方案 »
- asp.net 如何给fck编辑器加个上传附件 功能?
- 页面内容打印?
- 网面右键菜单,顶者有分
- 请问怎样在vs2003中用js控制treeview的checkbox的选中状态?
- 问一个超超级简单的问题,怎么用VISUAL STUDIO 可视化式的为一个服务端控件添加另一个事件的代码.
- treeview(vs2005中),如何实现checkbox级联选择,与级联取消选择
- 本人刚学习使用VS.net2003开发网站程序,有几点不明白望大家帮帮忙...
- asp.net问题
- 这个程序怎么去除版权?
- 大侠救我啊!!!从重装Win xp后ACCESS库就不能写了>:(
- 模扳列修改操作的疑问 :)~~~
- 关于图片和文本的问题
Response.Write(ds.GetXmlSchema().ToString());
Response.End();
Response.Write(ds.GetXmlSchema().ToString());
Response.End();
Response.Write(ds.GetXml());显示的是一般的文本,不是XML,你们可以试一下.
<?xml version="1.0" encoding="utf-8" ?>
- <NewDataSet>
- <Table diffgr:id="Table1" msdata:rowOrder="0">
<CustomerID>ALFKI</CustomerID>
<CompanyName>Alfreds Futterkiste</CompanyName>
<ContactName>Maria Anders</ContactName>
<ContactTitle>Sales Representative</ContactTitle>
</Table>
- <Table diffgr:id="Table2" msdata:rowOrder="1">
<CustomerID>ANATR</CustomerID>
<CompanyName>Ana Trujillo Emparedados y helados</CompanyName>
<ContactName>Ana Trujillo</ContactName>
<ContactTitle>Owner</ContactTitle>
</Table>
- <Table diffgr:id="Table3" msdata:rowOrder="2">
<CustomerID>ANTON</CustomerID>
<CompanyName>Antonio Moreno Taquería</CompanyName>
<ContactName>Antonio Moreno</ContactName>
<ContactTitle>Owner</ContactTitle>
</Table>
- <Table diffgr:id="Table4" msdata:rowOrder="3">
<CustomerID>AROUT</CustomerID>
<CompanyName>Around the Horn</CompanyName>
<ContactName>Thomas Hardy</ContactName>
<ContactTitle>Sales Representative</ContactTitle>
</Table>
- <Table diffgr:id="Table5" msdata:rowOrder="4">
<CustomerID>BERGS</CustomerID>
<CompanyName>Berglunds snabbköp</CompanyName>
<ContactName>Christina Berglund</ContactName>
<ContactTitle>Order Administrator</ContactTitle>
</Table>
</NewDataSet>
最好是将:<?xml version="1.0" encoding="utf-8" ?>
改成:<?xml version="1.0" encoding="GB-2312" ?>
Response.ContentType = "text/xml";
Response.Expires = -1;
Response.Write("<?xml version='1.0' encoding='GB2312'?>");
Response.Clear();
Response.Write(ds.GetXml().ToString());
Response.End();
Response.Write(ds.GetXml().ToString());
Response.End();
Response.Expires = -1;
Response.Clear();
Response.Write("<?xml version='1.0' encoding='GB2312'?>");
Response.Write(ds.GetXml().ToString());
Response.End();
Response.Expires = -1;
Response.Clear();
Response.Write("<?xml version='1.0' encoding='GB2312'?>");
Response.Write(ds.GetXml().ToString());
Response.End();