I am working in asp.net MVC , i face issue when checkbox is clicked then fileupload shows otherwise not shown
How can i solve this issue?
I am working in asp.net MVC , i face issue when checkbox is clicked then fileupload shows otherwise not shown
How can i solve this issue?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Oct 30, 2023, 10:35 AM
Hello Garima,
As it's in foreach loop. it will create duplicate IDs enclcheck for check box control.
I would suggest making it by class instead of id.
Also, you need to handle textboxfor/file upload control hide and show by class name. otherwise, it will work for only a particular ID (i.e. upfile3)
Thanks
Vishal Joshi
Garima BansalPosted Oct 25, 2023, 7:33 PM
i used it fro one of the fileupload
but not works.
Actually i have multiple fileupload, below is the code can you help me out