all groups > asp.net building controls > october 2007 >
You're in the

asp.net building controls

group:

Repeater in Server Control


Repeater in Server Control Joe C
10/2/2007 4:18:00 AM
asp.net building controls: Does anyone know how I can use a repeater in a server control? This means I
do not want to have an ascx file. I am particulairly stuck with setting the
ItemTemplate property of the Repeater in the code behind.

thanks,

Joe C
--
RE: Repeater in Server Control wawang NO[at]SPAM online.microsoft.com (
10/3/2007 12:00:00 AM
Hi Joe,

To do this, you will need to first create a new class that implements
ITemplate, in ITemplate.InstantiateIn method, you create other controls
that need to be put in the template and add to the container. Later, you
create an instance of your new class and assign to Repeater.ItemTemplate
property.

Here's MSDN document and example on this:

http://msdn2.microsoft.com/en-us/library/y0h809ak(VS.71).aspx


Please feel free to let me know if there's anything unclear. Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Repeater in Server Control wawang NO[at]SPAM online.microsoft.com (
10/3/2007 12:00:00 AM
Hi Joe,

To do this, you will need to first create a new class that implements
ITemplate, in ITemplate.InstantiateIn method, you create other controls
that need to be put in the template and add to the container. Later, you
create an instance of your new class and assign to Repeater.ItemTemplate
property.

Here's MSDN document and example on this:

http://msdn2.microsoft.com/en-us/library/y0h809ak(VS.71).aspx


Please feel free to let me know if there's anything unclear. Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Repeater in Server Control wawang NO[at]SPAM online.microsoft.com (
10/3/2007 12:00:00 AM
Hi Joe,

To do this, you will need to first create a new class that implements
ITemplate, in ITemplate.InstantiateIn method, you create other controls
that need to be put in the template and add to the container. Later, you
create an instance of your new class and assign to Repeater.ItemTemplate
property.

Here's MSDN document and example on this:

http://msdn2.microsoft.com/en-us/library/y0h809ak(VS.71).aspx


Please feel free to let me know if there's anything unclear. Thanks.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Repeater in Server Control Joe C
10/5/2007 11:31:00 AM
Thanks Walter,

I'm on vacation right now but will give it a shot when I am back in the
office.

Regards,
Joe
--
www.xcomplica.com


[quoted text, click to view]
AddThis Social Bookmark Button