开发者

Asp.net image control

开发者 https://www.devze.com 2023-01-15 08:39 出处:网络
I have a web page that will display an image (ie a logo). I a开发者_开发知识库m using the following code but the image is not being displayed in the image control.

I have a web page that will display an image (ie a logo). I a开发者_开发知识库m using the following code but the image is not being displayed in the image control.

Image1.ImageUrl = "C:\logo.jpg".

is there any way to display that image?


Create a folder within your website called 'images' and read the image from there; because the website is set up with a virtual directory, it doesn't have the concept of reading directly from a referenced path on your machine for obvious security reasons.

0

精彩评论

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