Click here to Skip to main content
15,885,546 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
coding freaks10-Mar-10 17:49 
QuestionWhere is the difference between inheriting inline and code-behind Pin
Gregory Gadow10-Mar-10 10:48
Gregory 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
mittalpa10-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
soshdf10-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
AndyASPVB10-Mar-10 9:46 
AnswerRe: Problem saving Panel Scroll Position on Post Back Pin
RCoate10-Mar-10 13:49
RCoate10-Mar-10 13:49 
GeneralRe: Problem saving Panel Scroll Position on Post Back Pin
AndyASPVB10-Mar-10 21:41
AndyASPVB10-Mar-10 21:41 
Questiondisabling an list item not working in Firefox Pin
KittyKit10-Mar-10 9:40
KittyKit10-Mar-10 9:40 
Questionmy new website Pin
tunsten10-Mar-10 9:35
tunsten10-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
tunsten10-Mar-10 21:02 
QuestionHome screen design for a website Pin
Member 335536610-Mar-10 9:25
Member 335536610-Mar-10 9:25 
AnswerRe: Home screen design for a website Pin
KittyKit10-Mar-10 21:47
KittyKit10-Mar-10 21:47 
Questionpage load Pin
AndyInUK10-Mar-10 7:06
AndyInUK10-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
saanj19-Mar-10 0:06 
QuestionWeb Service / Read whole XML string Pin
churchillc10-Mar-10 5:37
churchillc10-Mar-10 5:37 
QuestionChanging Hotspots Depending on Themes Pin
Randal Vance Cunanan10-Mar-10 2:52
Randal Vance Cunanan10-Mar-10 2:52 
Questionget primary key id from table Pin
Amit Patel198510-Mar-10 0:16
Amit Patel198510-Mar-10 0:16 
AnswerRe: get primary key id from table Pin
Jilu J Correya10-Mar-10 0:18
Jilu 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.