我需要让用户从我的ASP站点加载文件 [英] I need to let user loading file from my asp site

查看:53
本文介绍了我需要让用户从我的ASP站点加载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天

我有使用sql db和c#的ASP网站

我需要让站点访问者从站点加载文件,因为(pdf,doc,..)文件位于站点文件夹的子文件夹中,文件链接位于sql DB中.
我使用DetailsView控件显示来自数据集(包括文件路径)的搜索结果.

从详细信息视图加载文件的方式是什么(按钮字段或链接字段)

Good day

I have asp site using sql db and c#

I need to let site visitors loading file from the site as (pdf,doc,..) the files are in sub folders in the site folder , the files link are in the sql DB .
I use DetailsView control to displaying search result from data set including the files path.

What the way to loading file from details View, is it (button field or link field )
and what''s the field code ??.

推荐答案

您可以将字段设置为HyperLink字段并设置URL,以便打开文件.这是最简单的方法.
You can make the field a HyperLink field and set the URL so that it opens the file. That''s the easiest way.


这篇关于我需要让用户从我的ASP站点加载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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