在FileUpload的SaveAs()和HttpPostedFile.SaveAs()中 [英] inside FileUpload's SaveAs() and HttpPostedFile.SaveAs()

查看:200
本文介绍了在FileUpload的SaveAs()和HttpPostedFile.SaveAs()中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 FileUpload1.SaveAs()和HttpPostedFile.SaveAs()有什么区别.我知道两者都用于将一个或多个文件上传到Web服务器,但我想了解更多.请帮助我

解决方案

你好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 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!!


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆