我如何从MS Access的XML数据传递到服务器.aspx页面中的C#? [英] How do I pass XML data from MS Access to Server .ASPX Page in C#?

查看:110
本文介绍了我如何从MS Access的XML数据传递到服务器.aspx页面中的C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有从Access数据库VB脚本加载数据一个MS Access程序。我想这个信息传递给我的服务器。我想将数据以XML传输。

So I have an MS Access program with VB Script loading data from Access Database. I would like to pass this information to my server. I would like the data to be transferred in XML.

在服务器端,我有一个ASPX页面设置来处理输入数据。我如何从MS Access数据到ASPX页面?

On the Server side, I have a ASPX page setup to handle the incoming data. How do I get data from MS Access to that ASPX page?

推荐答案

您可能会想使用Web服务是传递数据。 MS访问是不是真的设计使用之类的东西SOAP / ASMX,JSON等,您可以安装Web服务引用工具(下面的链接)。既然你有一个ASPX页面,我们可以假设你正在运行IIS。所以,你必须创建一个可以消耗你想传递给它的数据的Web服务。一旦Web服务创建,发现访问新的Web服务(使用工具包),并使用公开的方法需要。

You will probably want to use a Web service to pass the data around. MS Access isn't really designed to use things like SOAP/ASMX, JSON, etc. You can install the Web Service Reference tool (link below). Since you have an ASPX page, we can assume you're running IIS. So, you'll have to create a Web service that can consume the data you want to pass to it. Once the Web Service is created, find the new Web Service in Access (using the toolkit), and use the exposed methods as needed.

http://msdn.microsoft。 COM / EN-US /库/ aa140260%28V = office.10%29.aspx

这篇关于我如何从MS Access的XML数据传递到服务器.aspx页面中的C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆