Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How to display imageS on page

Author  Topic 

salmonraju
Yak Posting Veteran

54 Posts

Posted - 2007-04-24 : 11:33:55
I have two tables one is Category and Products in my database

category
----------
CategoryID CategoryName Picture(image)
1 Books 100100011
2 Laptops 00101001001

2nd table

Products
------------
ProductID categoryID SmallImage Price Bigimage ProductName
1 1 10111010 234 101001001 Java
2 1 10101001 342 1011010 C#
3 2 101101001 2323 1011001 Lenova

now I have a page that display all the Categeory in a page Say
Category.aspx
I want those to be displayed as if the way the images are displayed
while in google image search .When i clicked a particaular image it have to navigated to products.aspxPage
that contains all the products of that category with images(a simple shopping cart application)
please help me how to display group of images in google image search fashion from database(how to bind to datalistcontrol)

ACushen
Starting Member

29 Posts

Posted - 2007-04-26 : 14:03:47
You are asking us to do an awful lot of work for you...and you haven't given us sufficient infotmation. Is this image itself stored in the database, or just the path to the image? I can't tell from your post...

At any rate, if you want the user to be able to go to another page by clicking on an image, that image needs to be a link with its HREF set to the page you want the user to go to, perhaps with the category passed in the QueryString. It's entirely possible to do this, pulling the URL from the database, but we can't help you without a little more info...

-Andrew
Go to Top of Page
   

- Advertisement -