如何在asp.net中将文件上传到gridview [英] How to upload file to gridview in asp.net

查看:189
本文介绍了如何在asp.net中将文件上传到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。



这是我的问题。



我想将文件上传到gridview和上传完成后删除文件,因为你上传了错误的文件,但我不知道怎么做。



请帮助,谢谢。

Hello.

This is my problem.

I want to upload file to gridview and remove file after upload complete incase you upload wrong file but I don't know how to do this.

please help,Thank you.

推荐答案

客户端不存在gridview。它是一个创建表的服务器端构造。如果您愿意,可以在gridview中放置文件上传控件。上传文件后,您需要将其保存并使用网站中的文件URL进行显示。
A gridview does not exist on the client side. It's a server side construct that creates a table. You can put a file upload control inside your gridview if you like. Once you get the file uploaded, you need to save it and use a URL to the file in your website in order to display it.


这篇关于如何在asp.net中将文件上传到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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