在ASPX页上的库视图中需要C#代码 [英] Need C# code for Gallery View on ASPX Pages

查看:62
本文介绍了在ASPX页上的库视图中需要C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要放置画廊的网站.
我已经为它编写了代码,并且成功了.
我的代码仅适用于主文件夹图片,仅适用于子文件夹图片.
但是我的要求是针对许多子文件夹.我需要在这个星期五之前提交代码,但我对此一无所知.

我进入了Maingallery.aspx页面,其中将显示MainFolder中的所有文件.在主文件夹中,我将放置带有子文件夹名称的照片.当用户单击基于照片名称的照片时,它将重定向到其他页面SubGallery.aspx,在该页面中以缩略图显示子文件夹中的所有照片.当用户单击缩略图时,它会放大并以全屏显示.

当我单击主文件夹图片(例如:Raj.jpg)时,它将重定向到子文件夹(Raj)照片,并且如果其中包含任何子文件夹,它将忽略所有照片.请尝试解决我的问题或提供任何提示,以便我尽快完成任务.

请再提供一个帮助,我可以将文件夹名称动态地赋予listview,以便我需要在listview中显示图片.现在,文件夹中的所有图像(即200、300或500)都显示在单个页面上.我只想通过在Listview中显示图片来更改代码.我将无法完成许多文件夹.

I am developing a website in which I need to place galleries.
I have written code for it and it is successful.
My code is working for mainfolder pics and only subfolder pics only.
But my Requirement is for many subfolders. i need to submit the code by this friday and i am not getting any idea.

I took a page Maingallery.aspx in which i will show all the files in MainFolder. In the main folder i will place photos with names of Subfolders. When user clicks on a photo based on the photo name it redirects to other page SubGallery.aspx where it shows all the photos in Subfolder in thumbnails. When user clicks on the thumbnail it enlarges and shows with full view.

when i click on the on a Main Folder pic(Ex: Raj.jpg) it is redirecting to subfolder(Raj) photos and if there are any subfolders in that it is ignoring all of them. Please try to solve my problem or give any hint so that i can complete my task as soon as possible.

One more help please can i give the folder names dynamically to listview and so that i need to display pics in listview. Now all the images in folder i.e,.either it may 200 or 300 or 500 are displaying on a single page. i just want to change the code by displaying the pics in Listview. There will be many Folders that is what i unable to complete the task.

推荐答案

^ ]可能会有帮助.
This[^] might help.


这篇关于在ASPX页上的库视图中需要C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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