DisplayMaster\DetailResults

  • Thread starter Thread starter gh
  • Start date Start date
G

gh

If you will goto this link http://www.railpictures.net/ and click the
Find the Photos button, about the middle of the page. The page that
gets opened as you can see displays trains and photos. What I have is a
Master(Projects) and Details(Photos) that I would like to display in a
similar fashion. I have 3 or 4 fields of data about the Project and can
have from 1 to many photos, per project, that I will display as
thumbnails below the Project Information. When the user clicks a photo
I will display it and the information about it in another page. I am
using .NET 2.0 and was wondering which Data Web 2.0 control or controls
would work best for this? Would someone have any links to tutorials.
that would show how this is done?

Thanks
 
For the display of pictures, you can work with a variety of options, but a
DataGrid, DataList or Repeater are all fine for display of multiple items.
If you want the pictures to go across a row and start on the next row, the
DataList is quite easy, for example.

To bind:
One way is to set up a DataSource control (SqlDataSource, etc.) that pulls
the info about the pictures. To display the pictures, you will either store
them in the database (not my fave) or have a page that actually serves the
picture. This can be done in tags or in the row data binding event.

You then have another DataSource that hooks up to the details view and you
configure it to use the ID of the chosen item in the DataList. This makes an
easy master/detail page.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 
Back
Top