简体   繁体   English

将图像添加到ASPX页面

[英]Adding Images to an ASPX page

I have an aspx page which I am pasting the code from. 我有一个aspx页面,我要从中粘贴代码。 This page is a preview gallery which when I create a new gallery in my admin panel it auto updates to this page and places the text name I assign in the admin and assigns a page link which takes users to the actual gallery page for that preview... for instance I log in as admin and select manage free gallery.. enter the gallery name (for example" free preview") upload 8 or 9 images and a slideshow then hit submit. 此页面是预览库,当我在管理面板中创建新库时,它会自动更新到此页面,并将我分配的文本名称放置在管理员中,并分配页面链接,该链接会将用户带到该预览的实际库页面。 ..例如,我以管理员身份登录并选择管理免费画廊。.输入画廊名称(例如“免费预览”),上传8或9张图片和幻灯片,然后点击提交。 The gallery is then created and a link to that gallery is placed on my page for all free galleries. 然后创建画廊,并在我的页面上放置了所有免费画廊的画廊链接。 I want to not only have a link but an actual thumbnail image for these.. how would I do this given the code I am pasting below? 我不仅要有一个链接,而且要有这些的实际缩略图。.给定我下面粘贴的代码,我该怎么办? I would also be willing to just eliminate the text link and go with a clickable thumbnail with a short description under it which actually would probably look better anyway. 我也愿意删除该文本链接,并在其下带有简短说明的可单击缩略图进行选择,无论如何它实际上看起来可能会更好。 Pasted ASPX Code follows: 粘贴的ASPX代码如下:

ok so I cant post the code because I am new... any suggestions??? 好的,所以我无法发布代码,因为我是新来的...有什么建议吗??? I can email code or post else where if anyone has some help info. 我可以通过电子邮件发送代码或在其他人有帮助的地方发布其他信息。

Thanks 谢谢

How do you create your text link? 如何创建文本链接? I assume you're using a asp:Hyperlink control and you're just setting its Text and NavigateUrl properties? 我假设您使用的是asp:Hyperlink控件,而您只是设置其Text和NavigateUrl属性?

Then you can do the same thing and also set the control's ImageUrl property to the URL path of the image. 然后,您可以执行相同的操作,还可以将控件的ImageUrl属性设置为图像的URL路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM