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
 Advice on whether repeater or other control

Author  Topic 

jhermiz

3564 Posts

Posted - 2006-02-28 : 11:04:31
I need to display a product image along with (many side) points about that product in some sort of control. So I was wondering should I use a repeater for this?

Basically imagine these three tables:

Product (stores products that we sell)
-------
ProductID

Possible values: Engines, Transmissions, etc.

ProductImage (stores jsut the path of an image for a product)
-------
ProductID
ImageID

There is simply one image per product (one to one relationship)

Finally,

ProductFunction
---------------
ProductID
FunctionID

Possible values could be (one to many side, one product can have multiple functions associated with it).
Engine:
-engine block
-cylinder head
-piston/conrod
-intake and exhaust manifold

Transmission
-blah 1
-blah 2
-etc..

Etc (products...)

So basically I want to show something to the effect of the image itself of the product, and right next to the image all the functions of htat product (maybe a list format).

I thought of using a repeater, but wanted to get some advice on it first.

Thanks,
Jon




Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-02-28 : 12:03:41
Jon,

Thinking of Sequential or Columnwise?
Sequential - Repeater, Columnwise - Datalist - I guess both might need bit of extra work to achieve what you want Or If I feel I have time to do bit of R&D, I might go with dynamic tables also, sometimes that gives me more control

Maybe somebody might give a better advice

Thanks

Karunakaran
Go to Top of Page

jhermiz

3564 Posts

Posted - 2006-02-28 : 12:08:30
quote:
Originally posted by karuna

Jon,

Thinking of Sequential or Columnwise?
Sequential - Repeater, Columnwise - Datalist - I guess both might need bit of extra work to achieve what you want Or If I feel I have time to do bit of R&D, I might go with dynamic tables also, sometimes that gives me more control

Maybe somebody might give a better advice

Thanks

Karunakaran



I ended up using a combination of a datalist and a datarepeater, so far so good.

Jon



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2006-02-28 : 12:52:50
quote:
Originally posted by jhermiz

I ended up using a combination of a datalist and a datarepeater, so far so good.

Jon



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]



Combination of Datalist and Repeater? Sounds Cool...
I havent tried that combination so far..
Keep posted on how it goes...

Thanks

Karunakaran
Go to Top of Page

DustinMichaels
Constraint Violating Yak Guru

464 Posts

Posted - 2006-02-28 : 13:19:30
Instead of using a Repeater and a DataList trying using two Repeaters. You can nest them if you have to.

Dustin Michaels
Go to Top of Page
   

- Advertisement -