Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 2 Oct 2007 04:18:00 -0700,    group: microsoft.public.dotnet.framework.aspnet.buildingcontrols        back       


Repeater in Server Control   
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
-- 
www.xcomplica.com
date: Tue, 2 Oct 2007 04:18:00 -0700   author:   Joe C am

RE: Repeater in Server Control   
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.
date: Wed, 03 Oct 2007 06:12:37 GMT   author:   (Walter Wang [MSFT])

RE: Repeater in Server Control   
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.
date: Wed, 03 Oct 2007 06:12:37 GMT   author:   (Walter Wang [MSFT])

RE: Repeater in Server Control   
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.
date: Wed, 03 Oct 2007 06:12:37 GMT   author:   (Walter Wang [MSFT])

RE: Repeater in Server Control   
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


""Walter Wang [MSFT]"" wrote:

> 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. 
> 
>
date: Fri, 5 Oct 2007 11:31:00 -0700   author:   Joe C am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us