具有FileUpload控件的RequiredFieldValidator [英] RequiredFieldValidator with FileUpload control

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

问题描述

我有一个ASP.Net页面,其中包含FileUpload控件.我在FileUpload控件中使用了RequiredFieldValidator.

添加任何数据时一切正常,但是在编辑时,直到我上传新文件后,该过程才能继续进行.

任何想法,如何解决呢?

I have an ASP.Net page with a FileUpload control within it. I used a RequiredFieldValidator with the FileUpload control.

All works fine while adding any data, but while editing it does not proceed until I upload a new file.

Any Idea, how to resolve this?

推荐答案

在页面加载时处于编辑模式下,您可以禁用文件上传控制的验证.
In edit mode when the page loads, you can disable the validation for fileupload control.


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

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