Click here to Skip to main content
14,845,934 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hosting an asp web site Pin
Not Active10-Mar-10 16:41
mentorNot Active10-Mar-10 16:41 
GeneralRe: Hosting an asp web site Pin
coding freaks10-Mar-10 17:49
Membercoding freaks10-Mar-10 17:49 
QuestionWhere is the difference between inheriting inline and code-behind Pin
Gregory Gadow10-Mar-10 10:48
MemberGregory Gadow10-Mar-10 10:48 
AnswerRe: Where is the difference between inheriting inline and code-behind Pin
Not Active10-Mar-10 15:13
mentorNot Active10-Mar-10 15:13 
AnswerRe: Where is the difference between inheriting inline and code-behind Pin
Pranay Rana10-Mar-10 19:03
professionalPranay Rana10-Mar-10 19:03 
QuestionHow to get handle to webpart in WebPartZone? Pin
mittalpa10-Mar-10 10:38
Membermittalpa10-Mar-10 10:38 
AnswerRe: How to get handle to webpart in WebPartZone? Pin
Not Active10-Mar-10 15:11
mentorNot Active10-Mar-10 15:11 
QuestionHow can I display an image onclick after displaying all images in a folder Pin
soshdf10-Mar-10 10:37
Membersoshdf10-Mar-10 10:37 
Hi everyone,
I'm trying to create a photo-gallery (on an asp.net c# page) that displays all images in a folder and then when an image is clicked it is displayed in a certain place on the page,
the problem is, since I'm displaying all images in a folder I don't have access to the details of the specific image clicked..

this is what I've got so far:
<asp:DataList ID="DataList1" runat="server" RepeatColumns="4" CellPadding="5">
        <ItemTemplate>           
             <asp:Image Width="100" ID="Image1"  ImageUrl='<%# Bind("Name", "~/images/Content/conf2010Photos/{0}") %>' runat="server" />
                   
                    <asp:HyperLink Target="_New" ID="HyperLink1" Text='<%# Bind("Name") %>' NavigateUrl='<%# Bind("Name", "~/images/Content/conf2010Photos/{0}") %>' runat="server"/>          
          </ItemTemplate>
                    <ItemStyle BorderColor="Silver" BorderStyle="Dotted" BorderWidth="1px" HorizontalAlign="Center"
                        VerticalAlign="Bottom" />                       
    </asp:DataList>



I don't really want to use the HyperLink, just to get the image itself clicked, also shouldn't it work on the client side and not go to the server on each click? Confused | :confused:
How could this be done?
Confused | :confused: Confused | :confused:

many thanks in advance!!
modified on Tuesday, March 16, 2010 9:30 AM

QuestionProblem saving Panel Scroll Position on Post Back Pin
AndyASPVB10-Mar-10 9:46
MemberAndyASPVB10-Mar-10 9:46 
AnswerRe: Problem saving Panel Scroll Position on Post Back Pin
RCoate10-Mar-10 13:49
MemberRCoate10-Mar-10 13:49 
GeneralRe: Problem saving Panel Scroll Position on Post Back Pin
AndyASPVB10-Mar-10 21:41
MemberAndyASPVB10-Mar-10 21:41 
Questiondisabling an list item not working in Firefox Pin
KittyKit10-Mar-10 9:40
MemberKittyKit10-Mar-10 9:40 
Questionmy new website Pin
tunsten10-Mar-10 9:35
Membertunsten10-Mar-10 9:35 
AnswerRe: my new website Pin
Not Active10-Mar-10 15:09
mentorNot Active10-Mar-10 15:09 
AnswerRe: my new website Pin
Pranay Rana10-Mar-10 19:25
professionalPranay Rana10-Mar-10 19:25 
GeneralRe: my new website Pin
tunsten10-Mar-10 21:02
Membertunsten10-Mar-10 21:02 
QuestionHome screen design for a website Pin
Member 335536610-Mar-10 9:25
MemberMember 335536610-Mar-10 9:25 
AnswerRe: Home screen design for a website Pin
KittyKit10-Mar-10 21:47
MemberKittyKit10-Mar-10 21:47 
Questionpage load Pin
AndyInUK10-Mar-10 7:06
MemberAndyInUK10-Mar-10 7:06 
AnswerRe: page load Pin
Abhijit Jana10-Mar-10 7:17
professionalAbhijit Jana10-Mar-10 7:17 
AnswerRe: page load Pin
saanj19-Mar-10 0:06
Membersaanj19-Mar-10 0:06 
QuestionWeb Service / Read whole XML string Pin
churchillc10-Mar-10 5:37
Memberchurchillc10-Mar-10 5:37 
QuestionChanging Hotspots Depending on Themes Pin
Randal Vance Cunanan10-Mar-10 2:52
MemberRandal Vance Cunanan10-Mar-10 2:52 
Questionget primary key id from table Pin
Amit Patel198510-Mar-10 0:16
MemberAmit Patel198510-Mar-10 0:16 
AnswerRe: get primary key id from table Pin
Jilu J Correya10-Mar-10 0:18
MemberJilu J Correya10-Mar-10 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.