上传后的FileUpload控件 [英] FileUpload Control after upload

查看:86
本文介绍了上传后的FileUpload控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我上传文件后我想把它的路径存放在数据库中,问题是文件上传清除上传后的路径,如何保持上传后显示的路径以及如何在我获取路径后显示页面加载的路径从数据库?

So after I upload the file I want to store its path in database the problem is file upload clear the path after uploading, how to keep the path displayed after upload and how to display the path on page load after I get its path from database?

推荐答案

你不能。由于安全限制,浏览器不允许您在 FileUpload Control中放置任何值。



而是声明一个标签 TextBox 并显示路径。
You can't. Because browsers won't allow you to put any value inside FileUpload Control due to security restrictions.

Instead declare one Label or a TextBox and show the path.


这篇关于上传后的FileUpload控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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