Dynamic HTML in ASP.NET
- From: "Colin" <colin@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 12:14:35 +0200
Hello,
I can manage quite well in ASP but would like some
advice in the best way to achieve dynamic layout
in ASP.NET and still keep the page and code
separate.
Let's say I already have a data source which
contains a few records with a picture link and
a label. That's simple so far but now I would
like to display all the records in a table with
three items in a row, each item maybe in a
bordered cell with picture, label and a checkbox
for selection.
Now the question is what is the most efficient
way of laying this out. I have had a look at the
Repeater control but this will not do as I need
to add the checkboxes programmatically
depending on the item count.
So it seems that I could use a Placeholder control,
loop through my items and add all the table html
using Literal controls. Is this the best way of
doing this, or am I missing something completely?
Any advice will be much appreciated.
.
- Follow-Ups:
- Re: Dynamic HTML in ASP.NET
- From: Vadivel Kumar
- Re: Dynamic HTML in ASP.NET
- From: Kevin Spencer
- Re: Dynamic HTML in ASP.NET
- From: Edwin Knoppert
- Re: Dynamic HTML in ASP.NET
- Prev by Date: Re: Literal control won't expand [You should read this]
- Next by Date: Re: Plan B? Re: I'm lazy: how do I make the first databound record not display/chop off the first element from SqlDataSource
- Previous by thread: Problem with alert message
- Next by thread: Re: Dynamic HTML in ASP.NET
- Index(es):
Relevant Pages
|