FileUploader在Updatepanel内的gridview中不起作用 [英] FileUploader is not working in gridview inside Updatepanel

查看:124
本文介绍了FileUploader在Updatepanel内的gridview中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在updatepanel中有gridview ...在这个gridview中,我在imagebutton中有图像插入和更新过程...

对于此插入和更新,我在C#中使用了fileuploader.单击插入"按钮时,它会触发fileuploader事件...

触发fileuploader时,显示错误为对象引用未设置为实例"....因为fileuploader事件在updatepanel内部....

当updatepanel之外的fileuploader事件正常工作时...但是带有updatepanel的fileuploader对我的项目很重要....

所以请帮我解决这个问题....

问候
vivekx2

Hi all,
I have gridview inside the updatepanel...In this gridview i have image inserting and updating process in imagebutton...

For this inserting and updating i have used fileuploader in C#...When clicking insert button it fires the fileuploader event...

When it fires fileuploader it shows error as "Object reference not set to an instance"....Because the fileuploader event is inside the updatepanel....

When the fileuploader event outside the updatepanel it works fine...But fileuploader with updatepanel is important for my project....

So please help me to solve this problem....

Regards
vivekx2

推荐答案



更新面板不适用于正常的FileUploader控件.原因是UpdatePanel正在异步工作.您需要异步FileUpload控件.

请检查以下链接,

异步文件上传 [ AsyncFileUpload控件-Ajax控件工具包中的新控件 [ ^ ]

谢谢
-Amit Gajjar
Hi,

Update panel will not work with normal FileUploader control. the reason is UpdatePanel is working Asynchronously. you need Asynchronous FileUpload control.

Please check below links,

Asynchronous File Upload[^]

AsyncFileUpload Control - New Control in Ajax Control ToolKit[^]

Thanks
-Amit Gajjar


这篇关于FileUploader在Updatepanel内的gridview中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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