如何从.aspx页中查找客户端本地路径 [英] How to find Client Local Path from an .aspx Page

查看:46
本文介绍了如何从.aspx页中查找客户端本地路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的Asp.Net应用程序中,我需要将报告(水晶)保存到客户端磁盘上的某些位置,例如"D:\ Sales.xls"

当我指定此路径时,它仅保存在"D:\\ Sales.xls"上的服务器位置上.

如何找到客户端计算机的本地路径以保存文件?



In my Asp.Net application i need to save an report(Crystal) to the Client disk on some location like "D:\Sales.xls"

While i specify this path its just save on Server''s location on "D:\\Sales.xls".

How to find Client machine local Path to save an file ??

推荐答案

您不能.安全将不允许您知道有关客户端的任何此类信息,即使默认情况下也是如此.当您的客户对文件进行贬低时,他会决定文件的保存位置,而不是您.
You can''t. Security will not allow you to know any such information about the client, even by default. When your client downlaods the file, he decides where it is saved, not you.


这篇关于如何从.aspx页中查找客户端本地路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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