fileupload control inside nested gridview

Posted by Bhuwan87rawat under ASP.NET on 10/21/2013 | Points: 10 | Views : 3847 | Status : [Member] | Replies : 3
hello sir
I want to use a file upload control inside a nested grid view .
i have face some problem when a rowdatabound of a grid i lost the value of hasfile is false.and i can not find the name of file or filename is null




Responses

Posted by: Bandi on: 10/22/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer the same issue in the following link and the workaround too
http://stackoverflow.com/questions/8183910/file-upload-control-hasfile-always-false-name-is-always-empty-string-no-update

Reason behind getting Null value for filename:
http://www.c-sharpcorner.com/uploadfile/prathore/fileupload-control-in-update-panel-using-Asp-Net-ajax/
http://www.codeproject.com/Articles/16945/Simple-AJAX-File-Upload

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shankul2784 on: 10/22/2013 [Member] Bronze | Points: 25

Up
0
Down
Hi,

I think for every record file upload is not required. May be you can use only one control at top and give radio button in grid...

I hope this will help you.

Thanks & Regards,

Shailesh

Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 10/22/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
I thing you are using update panel in your page. If you are using update panel, then fileupload control will return content as false. You can use ajax file upload control

Happy coding.

Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response