Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Repeater during runtime?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Repeater during runtime?

 Post Reply Post Reply
Author
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Topic: Repeater during runtime?
    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

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.