简体   繁体   中英

How do I pass XML data from MS Access to Server .ASPX Page in C#?

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.

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?

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/library/aa140260%28v=office.10%29.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM