English 中文(简体)
我怎么能够读到用户电脑的一台Xml文档。 NET MVC2站点
原标题:How can I read an xml file from the users computer on an ASP.NET MVC2 site?

我正在撰写一个网站,把含有数据的XML档案库合并为一个MySQL数据库。 我需要找到办法,使用户能够在其电脑上选择一个含有Xml文档的目录。 该网站随后阅读了这些档案,并仔细整理了这些信息。

是否有简单的方式(例如,没有立案的立案辩证书,供胜诉表格和 w夫)在用户电脑上立案辩词,让用户拿到一张目录,然后能够读到选定的目录中的xml文档? 我首先要把他们上载到现场吗? 或者,我能否在用户的电脑上查阅?

感谢!

最佳回答

你们可以直接从网络服务器获取文件。 如果你确实没有找到另一种方式,那么你将需要写一份积极的X控制书。

The standard conform way it just uploading one or more files with the browser fileupload: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.aspx

我建议,使用者应当篡夺档案,并只上载齐p文档。

有一些 ha,但我认为这不合适:

问题回答

我认为,你必须有一个网络博客,把文件上载到你已经提到的温室地点,然后把文件合并起来,然后投入到你的数据库。 或者,也许你可以在用户浏览器的案例中对Java语进行合并。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签