Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 14th, 2004, 06:55 AM
Friend of Wrox
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Designing repeater controls


Can I drag & drop components on to a repeater control frame or does the repeater control just give me an HTML framework in which I have to place my HTML manually (ie in the HTML pane ) ???

I want to design a repeating row of text labels and buttons eg.

<text field> <text field> <button> <text field> <button>
<text field> <text field> <button> <text field> <button>
<text field> <text field> <button> <text field> <button>

Should I use a repeater and manually insert HTML code?
Should I design my own component and insert it inside a repeater?
Can I drag/drop text label and button components onto a repeater?

What would be the best practice for something like this?

Cheers muchly.

Old July 14th, 2004, 04:52 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


The repeater only supports the HTML view, but you can drag-drop the component in the HTML view and the HTML will be created for you, so it helps.

Custom or composite controls are all about code reuse, and it would also minimize the total code in the page, so if you want to create a custom control, but it's up to you to determine if it's worth coding.

Old July 18th, 2004, 03:24 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

As Brian says, custom/composite controls (user and server controls) are all about code reuse, but keep in mind that if you are just using this control setup in a repeater control, the repeater is handling the "reuse" of the control layout. Unless you are going to need this exact same control layout in a different place (not just a repeated structure) you don't have to create such a custom control. And the time to create it might not be necessary.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Child Controls of Nested Repeater... Jayahar ASP.NET 2.0 Professional 3 October 11th, 2007 01:24 PM
Nesting Repeater controls Stricken ASP.NET 2.0 Basics 0 February 2nd, 2007 08:31 AM
How to get inner repeater controls in master detai ceema .NET Framework 2.0 0 September 7th, 2005 01:42 AM
database designing mukund SQL Server 2000 1 December 23rd, 2004 12:14 AM
help in designing a database rose77 SQL Server 2000 3 December 7th, 2004 12:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.