Click here to Skip to main content
12,243,180 members (22,948 online)
Rate this:
 
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 22:48pm
Edited 20-Dec-12 22:51pm
v2
Comments
Sampath Kumar Sathiya 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 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2016
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