Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi What is the difference between FileUpload1.SaveAs()and HttpPostedFile.SaveAs().I know that both are using for uploading file or files to the web server but I want to know more.Please help me
Posted

Hello Prafulla,

To know the difference between FileUpload1.SaveAs()and HttpPostedFile.SaveAs(),you should know the difference between
Quote:
FileUpload Class
and
Quote:
HttpPostedFile Class
.
Not to forget that one is a Control and other isn't. Infact FileUpload.SaveAs() uses the underlying HttpPostedFile object for a file that is uploaded by using the
Quote:
FileUpload control
.

Thanks!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900