Should I use a repeater?

  • Thread starter Thread starter matt swift
  • Start date Start date
M

matt swift

I'm looking to have a 'list' or previous posted messages as part of a form.

The list is basically a history, and will fill half the screen in terms
of width, and fill the screen completely in the vertical

--------------------------------|
| | |_| <-- Theres what I'm after on
| | --------- | | the right side. A list
| | | | of the messages with a
| | --------- | | scrollbar.
| | | |
| | --------- | |
| | | |
| | | |
|-------------------------------|

Because I want to generate these messages from the DB, and they may not
all follow the same UI (I might have different kinds of messages, some
text, some with images) I was thinking that EACH of the messages in the
list I'll develop as a control and put in a placeholder. Ok, cool, but..

What do I store all of these in? What control can I use to contain a
list of placeholders, and have it scrollable.

Hope this has made some sense. Thanks for any views on the matter! :)

Matt Swift
 
matt swift wrote:
Because I want to generate these messages from the DB, and they may
not all follow the same UI (I might have different kinds of messages,
some text, some with images) I was thinking that EACH of the messages
in the list I'll develop as a control and put in a placeholder. Ok,
cool, but..

What do I store all of these in? What control can I use to contain a
list of placeholders, and have it scrollable.

I would suggest using a datalist, with a literal control in the
itemtemplate.
Just bind the Text property of the literal to any HTML code you like.

To make it scrollable, just put the datalist in a scrollable <div> tag
(<div style="OVERFLOW: auto;">)
 
Jos said:
matt swift wrote:



I would suggest using a datalist, with a literal control in the
itemtemplate.
Just bind the Text property of the literal to any HTML code you like.

To make it scrollable, just put the datalist in a scrollable <div> tag
(<div style="OVERFLOW: auto;">)

scrollable div tag. genius. this is excellent feature, thanks
 
Back
Top