how can rename image when upload on the server

Posted by Neha-kapoor under ASP.NET on 7/4/2011 | Points: 10 | Views : 2777 | Status : [Member] | Replies : 4
hallo to all
i want that when user upload the image the image name change
how can i do this

thanks


Responses

Posted by: Ndebata on: 7/4/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Neha,

If you are using ASP.Net Upload Control,
It has a method called SaveAs() try to provide the new name there, it will save that file with that name.
FileUploader1.SaveAs("Full path of that Image with New Name")


Thanks,
Debata


Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neha-kapoor on: 7/4/2011 [Member] Starter | Points: 25

Up
0
Down
Dear Sir
but how can rename
i m student not a professional i trying but cant do
can you give any example for me


thanks

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 7/4/2011 [Member] Starter | Points: 25

Up
0
Down
Take a look at this attached sample

 Download source file

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neha-kapoor on: 7/5/2011 [Member] Starter | Points: 25

Up
0
Down
thank you

thanks

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response