can anyoen tell me when i use file upload in asp.net
can anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz
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.
sanjeev kumarPosted Dec 20, 2014, 6:05 AM
Manish Kumar ChoudharyPosted Nov 28, 2014, 11:13 PM
Hi sanjeev kumar,
Read these links it helps you
http://aspforums.net/Threads/494969/ASPNet-FileUpload-Rename-file-name-before-saving-if-already-exists/
http://stackoverflow.com/questions/18095566/rename-file-in-c-net-when-its-is-uploaded-through-file-upload-control-and-save
Wim SturkenboomPosted Nov 28, 2014, 1:56 PM
That would be simply a matter of
youruploadcontrol.SaveAs("somepath\\123.txt");