Click here to Skip to main content
11,640,599 members (59,389 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
In ASP.NET (c#), When I Click On Thumb Image,Then The Original Image Should Be Displayed With The Given Information About The Image In Another Page....
I have 50 images Are there..Each Time When I Am Clicking each Thumb image Then Each Original Image and Information About The Image Should Be displayed In Another Page...So for that now I Have To Create 50 Pages for The Each Image And Information About That image Or Any Simple Method Is there For My Query...Please Help Me..

Thanks In Advance
Posted 20-Dec-12 21:48pm
Edited 20-Dec-12 21:51pm
v2
Comments
Sampath Kumar Sathiya at 21-Dec-12 4:08am
   
Could you please provide the following detail?

Whether your image informations are stored in Database (along with image)?
Md. Humayun Rashed at 21-Dec-12 4:14am
   
I can understand but not details. can you please explain the details what you done. I mean can you explain your code.
CHAITANYA KIRAN KASANI at 21-Dec-12 4:46am
   
Information Is Along With Image Itself In The Database only
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The whole point of using the database is so that you can DYNAMICALLY populate a SINGLE PAGE TEMPLATE with the record from the database.

And that way you dont have to create an indivdual page for each record!

The psuedo code for what you are attempting is as follows...

 1 - User clicks on thumbnail.
 2 - Based on the thumnail clicked... The record is pulled from the database
 3 - The data is bound to a request header and submitted to the TEMPLATE using a GET/POST method in a new window


Note:
I have said new window because you stated it should display in another page.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Bind Images using repeater control by image_id stored in database and when u click on image pass image_id as query string and retrieve that image data according to image_id on second page where u want to show image details and image.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 330
1 OriginalGriff 175
2 Afzaal Ahmad Zeeshan 130
3 CPallini 125
4 Sergey Alexandrovich Kryukov 94
0 Mika Wendelius 200
1 OriginalGriff 145
2 CPallini 115
3 jgakenhe 40
4 sasanka sekhar panda 30


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100