Click here to Skip to main content
16,012,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900