Print Page | Close Window

Repeater during runtime?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7586
Printed Date: 29 March 2026 at 1:25pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Repeater during runtime?
Posted By: Boecky
Subject: Repeater during runtime?
Date Posted: 25 November 2003 at 5:50am
Hi, I'm searching how to create a repeater during runtime. I can create it, but not the templates.

Dim repeater As New Repeater()
repeater.DataSource = reader
repeater.DataBind()


How to create the templates during runtime? Later I'll put this repeater in a placeholder.

Thanks




Replies:
Posted By: Diep-Vriezer
Date Posted: 25 November 2003 at 10:26am

Templates?  There are a few functions which create textboxes during runtime, but I haven't been able to display a auto-generated textbox (or repeater, or whatever). I didn't spend much time on it, so that might be the reason, anyway, do you use VS.NET? If so, try some intellisense function with Create in it.



-------------
Gone..


Posted By: Boecky
Date Posted: 25 November 2003 at 12:29pm
yes I use vs.net, but the problem is, the templates are in html and I don't know where to put this.


Posted By: Diep-Vriezer
Date Posted: 25 November 2003 at 12:59pm

 What do you want to do?

I assume you want this:

 - Create a repeater control
 - Bind it to a database
 - Put the repeater in the 'template'
 - Return the output

I guess the best way to do this is using user controls (*.ascx), which you'll include at the place where you want it (static), then the control will or will not write the repeater, and you're set.



-------------
Gone..


Posted By: Diep-Vriezer
Date Posted: 25 November 2003 at 1:00pm
Infact, why don't you create a static repeater, that's much easier, although the thing you want must be possible by using .NET.

-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net