Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Image Control

Status
Not open for further replies.

Mike555

Technical User
Feb 21, 2003
1,200
US
I'm looking for an asp.net webform control which can display multiple images from either an xml or database source on the webform.

Here's a perfect example of what I need it to look like...
Notice the frame containing the tabs PHOTOS,VIDEO,PHOTO ESSAYS. Notice the multiple images that display when PHOTOS is selected.

Can anyone suggest a product which I can use to achieve this or a method to achieving this? Thanks.
 
That's fairly easy to create. Simply make a user control that contains a function to create image controls on the fly. Then, it's simply a case of dropping the control on the page and calling the function for each picture you want to display.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
It sounds fairly easy when used in that context. Guess I just need to play around a bit and figure it out. Thanks.
 
I'm not even sure I'd go that far. Why not just use a DataList (or some other templated web control) with a repeat direction of horizontal. If the ItemTemplate contains a properly set up Image control, you can simply get some data to bind to it like:

Code:
photoDataList.DataSource = whatever;
photoDataList.DataBind();
 
That's definately a good alternative, however, I'd still be tempted to go with a user control that wrapped it all up as it can then be easily implemented on any page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top