Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 18, 2011 08:10 PM by tehremo
Member
64 Points
86 Posts
Sep 18, 2011 07:13 PM|LINK
Hello,
is is possible to insert and view images using mvc 3.
using mvc for product catalogue.
regards
Star
10540 Points
1704 Posts
Sep 18, 2011 08:10 PM|LINK
Sure, here is a post about how to implement FileUpload with MVC: http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx
Once you have the upload done, you can push the image URL back down to a view and show it using a standard <img> html control.
maverickprot...
Member
64 Points
86 Posts
inserting and viewing images
Sep 18, 2011 07:13 PM|LINK
Hello,
is is possible to insert and view images using mvc 3.
using mvc for product catalogue.
regards
tehremo
Star
10540 Points
1704 Posts
Re: inserting and viewing images
Sep 18, 2011 08:10 PM|LINK
Sure, here is a post about how to implement FileUpload with MVC:
http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx
Once you have the upload done, you can push the image URL back down to a view and show it using a standard <img> html control.