473,394 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Should I use a repeater?

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
Nov 18 '05 #1
2 1205
Jos
matt swift wrote:
<snip>
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
Nov 18 '05 #2
Jos wrote:
matt swift wrote:
<snip>
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;">)


scrollable div tag. genius. this is excellent feature, thanks
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
0
by: Amir | last post by:
Hi every one This is the problem: I have a UserControl that contains a Repeater and a few LinkButton. The Repeater generate some linkButton. I use this control for implementing paging solution...
3
by: sorCrer | last post by:
Hi All, Posted after extensive searching! I have a nested repeater control as follows: (Simplified ;-)) <table> <asp:repeater id=parent onItemDataBound=createChild> <tr><td>Level...
1
by: olduncleamos | last post by:
Hello all, I am experimenting with the repeater control and ran into something that I wasn't expecting. I would appreciate if the experts can confirm or correct my understanding. Here is a...
2
by: mark | last post by:
(not sure if this is the correct group) My problem is I need to have a "nested" repeater. I have an array which I load into a hashtable - that part works great. I can setup the second repeater...
2
by: GD | last post by:
I'd like to use a Repeater to display data coming back from a cross-tab report. Because it's a cross-tab, I generally don't know how many columns are coming back. They do follow a certain format: ...
0
by: uncensored | last post by:
Hello everyone, I'm fairly new at .Net and I have a repeater inside a repeater problem. I will attach my code to this message but basically what I am able to tell when I run my page it tells me...
3
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not sure if it's something that I am doing wrong or...
12
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I'm doing a web app in VB/Dot Net 2.0. I'm probably a bit rusty and I have no experience using the repeater control. I have a user control I've created with multiple properties. I've created a...
2
by: Hong | last post by:
Hi, I have been scratching my head over this problem for hours, the repeater control I am using would only render the controls specified in HeaderTemplate and FooterTemplate, but the repeater...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.