如何在.aspx表单上加载图像??? [英] How to load an image on .aspx form???

查看:69
本文介绍了如何在.aspx表单上加载图像???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Visual Studio 2005中使用图像控件在aspx表单上加载图像.
运行表单时,我可以看到控件bt而不是image

I m trying to load an image on aspx form using image control in visual studio 2005.
While running the form i can able to see the control bt not the image

推荐答案

,这意味着您提供的图像的路径是错误的.图像必须在服务器上,在服务器根目录下,并且您的路径必须相对于页面,或者指定它是从服务器根目录开始的.
That means the path to the image that you provide, is wrong. The image must be on the server, under the server root, and your path needs to be relative to the page, or specify that it''s from the server root.


thnx for d回复....使用Image Control的ImageUrl属性给定图像路径,并将图像放置在项目的AppData文件夹中.图像在项目的设计时可见,但是当我在浏览器中预览页面时,图像会变大不会被显示..
thnx for d reply.... The image path is given using ImageUrl property of Image Control and the image is placed in AppData folder of the project.. Image get visible in design time of the project but when i preview the page in browser, it dosen''t get displayed..


请使用完整的英语单词并编辑您的帖子以添加详细信息.设计视图是毫无价值的.另外,当您通过按F5键运行Web应用程序时,其运行路径与部署路径不同,因为Web应用程序名称已添加到URL.
Please use full English words and edit your post to add detail. The design view is worthless. Also, when you run your web app by pushing F5, the path it runs under is different to the deploy path, because your web app name is added to the URL.


这篇关于如何在.aspx表单上加载图像???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆