当文件上传放在更新面板内时,文件上传在gridview内部不起作用,显示对象未设置为对象的实例 [英] file upload is not working inside gridview when it is placed inside update panel showing object not set to an instance of the object

查看:70
本文介绍了当文件上传放在更新面板内时,文件上传在gridview内部不起作用,显示对象未设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们



i里面有一个更新面板,里面有一个gridview,并且模板字段中有一个fileupload控件。



我更新其显示对象引用未设置为对象的实例



请帮助我

hi friends

i have placed a update panel inside that there is a gridview and in that there is a fileupload control in template field.

while i update its showing "object reference not set to an instance of an object"

please help me

推荐答案

不要在更新面板内使用FileUpload控件。
Do Not Use FileUpload Control Inside Update Panel.


FileUpload控件需要完整的回发才能使其工作。为控件添加PostBackTrigger。这应该适合你。



问候,

Jobin
FileUpload control needs a full postback to get it worked. Add a PostBackTrigger for the control . This should work for you.

Regards,
Jobin


这篇关于当文件上传放在更新面板内时,文件上传在gridview内部不起作用,显示对象未设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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