我想创建一个界面来使用ASP .NET在我的网站上传文件 [英] I want to create an interface to upload files on my website using ASP .NET

查看:62
本文介绍了我想创建一个界面来使用ASP .NET在我的网站上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP .NET中 - 如何使用用户名和密码在我的网站上创建用户界面,以便用户可以使用该界面上传文件(.txt,.pdf,.doc,.xls等)。上传后,应该创建一个表格,其中包含FileName字段,以及具有授权密码的用户提供的其他详细信息。

In ASP .NET - How to create a user interface on my website with username and password so that user can upload files(.txt, .pdf, .doc, .xls etc) using that interface. After uploading there should be created a table that will have fields as FileName, and other details provided by the user having authorized password.

推荐答案

使用上传表单控件后已经授权,不需要下载链接授权。这是我可以根据你的问题给出的最佳答案。

像这样的简单表格可以在客户端完成工作。

Use an upload form control after you''ve authorized, don''t require authorization on download links. That''s the best answer I can give based on your question.
A simple form like this can do the work on the client side.
<form action="demo_form.asp" mode="hold" />Upload <input type="file" name="urfile"><br>
<input type="submit" value="Submit">
</form> 



使用请求文件流来读取服务器上的文件,存储到您需要的任何位置并提供下载链接你想要的。



祝你好运。


Use the request file stream to read the file on the server, store into whatever locations you need and provide download links where you want.

Good luck.


这篇关于我想创建一个界面来使用ASP .NET在我的网站上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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