
Sometimes, though, you need to be able to display images dynamically - that is, you don't know what image to display until the page is running. If an image is already available on your site and you just want to display it on a page, you use an HTML element like this: You can also let users upload images, which might be useful for tasks like letting them add a profile photo. You can add images to your website and to individual pages while you're developing the website. This tutorial also works with WebMatrix 3.Īdding an Image to a Web Page Dynamically


This article shows you how to add, display, and manipulate images (resize, flip, and add watermarks) in an ASP.NET Web Pages (Razor) website.
