asp.net中的fileupload [英] fileupload in asp.net

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

问题描述

我有四个提交upadating ....名称,UserImage,地址和DOB

对于UserImage Uploding,我正在使用Fileupload控件......但有时我们

没有选择userimage进行上传然后它正在更新数据库中的空值。

所以,我想知道如何改变以前的图像..如果用户没有更新图像。

I have four filed for upadating.... Name, UserImage, Address and DOB
For UserImage Uploding, i am using Fileupload controls......but sometimes when we
are not selecting userimage for uploading then it''s updating null value in database.
So, i want to how mentain the previous image..if user is not updating the image.

推荐答案

< updated answer =>

当用户要更新字段时,设置一个表示update = True的标志。

检查此标志值,如果为True,则禁用文件上载控制,并在向数据库发送更新值时,不要发送值图像。只发送那些可以更新的字段。

/ xml>
<updated answer="">
Set a flag saying update = True when user is going to update the fields.
Check for this flag value, if it is True, disable file upload control and while sending updated values to database, do not send the value image. Only send those fields which can be updated.
/xml>


进行更改后....编写文件上传控件的验证过程... 。



之后尝试两个链接...



带进度条的ASPP.NET文件上传 [ ^ ]





http://msdn.microsoft.com/en -us / library / aa479405.aspx [ ^ ]
after make the changes....writing the validation process for file upload control....

After that try both link...

ASP.NET File Upload with Progress Bar[^]


http://msdn.microsoft.com/en-us/library/aa479405.aspx[^]


如何在asp.net上传视频
how to upload video in asp.net


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

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