且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MVC3应用程序中上传文件

更新时间:2022-03-27 07:51:01

请参考以下链接



http:// www。 mindstick.com/Articles/2f001c1c-daea-4fa7-856d-7c72a1883508/?FileUpload%20in%20ASP.NET%20MVC [ ^ ]
Please refer the following link

http://www.mindstick.com/Articles/2f001c1c-daea-4fa7-856d-7c72a1883508/?FileUpload%20in%20ASP.NET%20MVC[^]


你有没有试试......〜/ file_address / filename.jpg或../file_address/filename.jpg?而且,记住你需要将文件添加到项目中,以便它可以从它自己的内容而不是从你的计算机中调用它。您可以通过右键单击解决方案资源管理器中的图像并添加现有文件来执行此操作。
Did you try..."~/file_address/filename.jpg" or "../file_address/filename.jpg"? And also, rememeber you need to add the file to the project so it can call it from it's own content and not from your computer. You can do that by right-clicking on Images in your solution explorer and add existent file.