开发者

FileUpload.SaveAs() doesn't let my visual studio see the uploaded pictures hence my image control isn't showing the picture

FileUpload1.SaveAs(Server.MapPath(~\resouces\cruises\cruise_cl\+ savedFileName));

And I've debugged to check maybe something's wrong with Parameter but nothing's wrong and I can the pictures with my windows explorer and I copy the path and past it in my browser and the image show up. but I still can't see it in the Solution 开发者_StackOverflowExplorer and my Image Control doesn't see the picture either!!

I really have no idea what's going on .. any hints please ?!!

Edit

The problem was that I assigned an actual path to the ImageUrl property. I should have used a virtual path.

Thanks for trying to help


Yes, there is an option in the visual studio under "Project" menu item named "Show All Files" that will allow you to see all files and then you can write click on the file and include it in the project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜