开发者

Asp.net 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜