需要以下功能的帮助 [英] need help for below functionality

查看:64
本文介绍了需要以下功能的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要做的想法是,一个将由用户选择的.vcf文件,该文件的内容应由File.ReadAllText()函数读取,然后该函数从该文件读取的每个值都希望保存在数据库中.有什么办法可以实现此功能?.

在Windows应用程序和适用于Web应用程序的IE浏览器中有效,但在FF浏览器中无效.
使用FileUpload控件选择路径时出现的问题

the idea behind me to do is, a .vcf file which will be selected by a user, the content of the file should be read by File.ReadAllText() function, then every value read by function from that file wants to save in the database. is there any way to do this functionality?.

which is works in windows application and IE browser for web application but ll not in FF browser.
the problem when selecting the path using FileUpload control

string srtFPathName = fileupload1.PostedFile.FileName;

在IE中不能在FF中工作

works in IE not in FF

推荐答案

问题应该出在文件路径周围.在IE中,您可能会获得完整路径,而在FF中,您可能会获得文件名.

请参考:文件上传在FF中不起作用 [
The problem should be around the filepath. In IE you might get the full path and in FF only the file name.

Refer: FileUpload not working in FF[^]


这篇关于需要以下功能的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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