如何通过在线网站上传阅读XML文件。 [英] How to read XML File by uploading on online website .

查看:105
本文介绍了如何通过在线网站上传阅读XML文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨团队,



我做了什么



我有一个Asp.net项目,可以在网页上读取和提取XML数据。

我可以通过提供路径在我的本地计算机上的网页上读取和提取数据。

然而,当我在我的网站上在线发布时,我无法阅读我给了(在本地系统上阅读



做什么

所以我试图通过FileUpload Control上传该文件,这样就会被读取

我必须在我的在线网站上阅读那个XML文件而不是本地系统。



所以我想在网页上传这个文件,并且应该阅读所有内容。



你能帮我吗如何阅读上传的文件在线? ?



问候

Rectus

Hi Team,

What I have Did

I have one Asp.net Project which Reads and extracts XML data on webpage.
I am able to read and extract data on webpage on my Local Computer by giving path.
However ,When I publish this online on my website I could not read path that I have given ( which was reading on local system )

What To DO
So I am trying to Upload that File by FileUpload Control so It will be read
I have to read that XML File on my online Website NOT on Local System.

So I want to Upload that File on webpage and should read all content .

Could you Please Help me How to read Uploaded File online ? ?

Regards
Rectus

推荐答案

查看显示方式的链接处理相对/绝对路径。



http://stackoverflow.com/questions/10479942/how-to-set-physical-path-to-upload-a-file-in-asp-net [ ^ ]



希望这有帮助
Check the link which shows how to handle relative/absolute paths.

http://stackoverflow.com/questions/10479942/how-to-set-physical-path-to-upload-a-file-in-asp-net[^]

Hope this helps


这篇关于如何通过在线网站上传阅读XML文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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