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
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 28, 2014, 6:13 PM EST
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 SturkenboomRank #2,527 · 554 reputationPosted Nov 28, 2014, 8:56 AM EST
That would be simply a matter of
youruploadcontrol.SaveAs("somepath\\123.txt");
sanjeev kumar15 reputationPosted Dec 20, 2014, 1:05 AM EST