Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 javascript 代码,我在其中创建 XML Dom 并将其发送(使用 XMLHTTP)到代码隐藏页面(server.aspx.cs)。我怎样才能在那里读取 XML?
实现此目的的一种方法是简单地将 InputStream 从 Request 对象加载到 XmlDocument 对象中
protected void Page_Load(object sender, EventArgs e) { XmlDocument postedXml; postedXml = new XmlDocument(); postedXml.Load(Request.InputStream);
然后您可以正常访问postedXML 文档。