在FileUpload的SaveAs()和HttpPostedFile.SaveAs()中 [英] inside FileUpload's SaveAs() and HttpPostedFile.SaveAs()
本文介绍了在FileUpload的SaveAs()和HttpPostedFile.SaveAs()中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
你好Prafulla,
要了解 FileUpload1 .SaveAs()和 HttpPostedFile .SaveAs()之间的区别,您应该知道Quote:FileUpload上传的文件控制
.
谢谢!!!
请检查以下链接
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/system.web. httppostedfile.aspx [ ^ ]
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
解决方案Hello Prafulla,
To know the difference between FileUpload1.SaveAs()and HttpPostedFile.SaveAs(),you should know the difference betweenQuote: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 theQuote:FileUpload control
.
Thanks!!
Please check the following links
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.aspx[^]
http://msdn.microsoft.com/en-us/library/system.web.httppostedfile.aspx[^]
这篇关于在FileUpload的SaveAs()和HttpPostedFile.SaveAs()中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文