Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
riodejenris14 17-Jun-13 3:38am    
while you click the upload button check the path for null?
Also, submit your code to resolve the issue what I can?...
Zafar Sultan 17-Jun-13 6:12am    
Adding a postback trigger usually is sufficient as file can not be uploaded from within an update panel. You will have to post your code to show how you are handling uploading of file and in which event.

Do Not Use FileUpload Control Inside Update Panel.
 
Share this answer
 
Comments
sreeCoderMan 17-Jun-13 5:30am    
update panel covers full gridview i need it like that... please help me ..
FileUpload control needs a full postback to get it worked. Add a PostBackTrigger for the control . This should work for you.

Regards,
Jobin
 
Share this answer
 
Comments
sreeCoderMan 17-Jun-13 5:29am    
i am using fileupload in footertemplate
JoCodes 17-Jun-13 13:13pm    
Can you please post the code ?

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



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