即时创建可下载的文件 [英] Creating a downloadable file on the fly

查看:87
本文介绍了即时创建可下载的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我喜欢从数据库中导出一些数据,并允许我的用户将这个文件存储到他们的硬盘上作为.txt文件。有谁知道我会怎么做?b $ b去做那件事? (首先在我的

本地驱动器上创建实际的物理文本文件)。

谢谢

Maziar A.

解决方案

这里有几个关于这个主题的好教程:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx


-

我希望这会有所帮助,

Steve C. Orr,MCSD,MVP
http://Steve.Orr.net

聘请 http://www.able-consulting.com


Maziar Aflatoun <毫安*** @ rogers.com>在消息中写道

新闻:hI ********************* @ news01.bloor.is.net.c able.rogers.com ...

大家好,

我喜欢从数据库中导出一些数据,并允许我的用户将这个文件作为.txt存储到他们的硬盘中。文件。有谁知道我会怎么做呢? (首先不在我的
本地驱动器上创建实际的物理文本文件)。

谢谢
Maziar A.



也许我没有正确解释自己。我不想将文件上传到

服务器。我想允许用户(浏览我的网站的人)下载动态创建的文本文件,而无需在

本地计算机上实际创建文件。因此,用户会看到类似另存为的内容然后

他们可以将文件存储到本地硬盘中。


有什么想法吗?


" Maziar Aflatoun" <毫安*** @ rogers.com>在消息中写道

新闻:hI ********************* @ news01.bloor.is.net.c able.rogers.com ...

大家好,

我喜欢从数据库中导出一些数据,并允许我的用户将这个文件作为.txt存储到他们的硬盘中。文件。有谁知道我会怎么做呢? (首先不在我的
本地驱动器上创建实际的物理文本文件)。

谢谢
Maziar A.



查看 http://www.devasp.net/net/search/default.asp?c_id=1122

希望这会有所帮助


HD

" Maziar Aflatoun" <毫安*** @ rogers.com>在消息中写道

新闻:在******************* @ news04.bloor.is.net.cab le.rogers.com .. 。

也许我没有正确解释自己。我不想将文件上传到
服务器。我想允许用户(浏览我的网站的人)下载
动态创建的文本文件,而无需在
本地计算机上实际创建文件。因此,用户会看到类似另存为的内容,然后
他们可以将文件存储到本地硬盘中。

任何想法?

Maziar Aflatoun <毫安*** @ rogers.com>在消息中写道
新闻:hI ********************* @ news01.bloor.is.net.c able.rogers.com ... < blockquote class =post_quotes>大家好,

我喜欢从数据库导出一些数据,并允许我的用户将这个文件作为.txt文件存储到他们的硬盘中。有谁知道我会怎么做b $ b呢? (没有在
我的本地驱动器上创建实际的物理文本文件)。

谢谢
Maziar A.




Hi everyone,

I like to export some data from the database and allow my users to store
this file to their harddrive as a .txt file. Does anyone know how I would
go about doing that? (without creating the actual physical text file on my
local drive first).
Thank you
Maziar A.

解决方案

Here''s a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:hI*********************@news01.bloor.is.net.c able.rogers.com...

Hi everyone,

I like to export some data from the database and allow my users to store
this file to their harddrive as a .txt file. Does anyone know how I would
go about doing that? (without creating the actual physical text file on my
local drive first).
Thank you
Maziar A.



Maybe I did not explain myself right. I don''t want to upload files to the
server. I want to allow the user (person browsing my website) to download a
dynamically created text file without actually creating the file on the
local machine. So the user would see something like ''Save as'' where then
they can store the file to their local hard-drive.

Any idea?

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:hI*********************@news01.bloor.is.net.c able.rogers.com...

Hi everyone,

I like to export some data from the database and allow my users to store
this file to their harddrive as a .txt file. Does anyone know how I would
go about doing that? (without creating the actual physical text file on my
local drive first).
Thank you
Maziar A.



have a look at http://www.devasp.net/net/search/default.asp?c_id=1122

Hope this helps

HD
"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:At*******************@news04.bloor.is.net.cab le.rogers.com...

Maybe I did not explain myself right. I don''t want to upload files to the server. I want to allow the user (person browsing my website) to download a dynamically created text file without actually creating the file on the
local machine. So the user would see something like ''Save as'' where then
they can store the file to their local hard-drive.

Any idea?

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:hI*********************@news01.bloor.is.net.c able.rogers.com...

Hi everyone,

I like to export some data from the database and allow my users to store
this file to their harddrive as a .txt file. Does anyone know how I would go about doing that? (without creating the actual physical text file on my local drive first).
Thank you
Maziar A.




这篇关于即时创建可下载的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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