|
 |
aspx thread: Templating a Repeater control?
Message #1 by "Oliver, Wells" <WOliver@l...> on Tue, 8 Oct 2002 10:12:43 -0700
|
|
I have a page with three Repeater controls. Each uses its own separate
datasource, but they all look the same. Is there a way to make them all use
the same template so I don't have to redefine/tweak the layout three times
over?
Thanks much.
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by "Christer Østergaard" <christer@w...> on Wed, 9 Oct 2002 12:18:41
|
|
If you can narrow it down to sharing the same layout, but not the same
data source, you easily achieve what you want by creating a user control
that contains the repeater control and enable it to take in your
datasource. Hereefter, in you current code, replace the the use of
repeater controls with the use of your new user control: Same look,
different data...
Christer
> I have a page with three Repeater controls. Each uses its own separate
datasource, but they all look the same. Is there a way to make them all use
the same template so I don't have to redefine/tweak the layout three times
over?
|
|
 |