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, 08:41 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to position a repeater control

When I add a repeater control to my webpage it is always placed
at the top left of the page. I cannot seem to add HTML to
position the repeater control exactly where I want it located on
my page.

If I add an HTML grid layout and drop the repeater onto it - the
repeater disappears.

What's the best way to position a repeater ?
Can anyone direct me to a good code example?
Cheers.

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

Hey,

Oftentimes I'll use a table, or a <div> element would work as well. In addition, if you need to add padding away from a border for some reason, you can set the padding-left, padding-right, padding-top, or padding-bottom attributes of almost any tag in the HTML language. If you are setting all 4, a shortcut is to set the padding attribute to a value (represents all 4), as such:

<span style="padding-left:20px;padding-right:20px;"><control></span>

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
repeater control akssmv ASP.NET 2.0 Basics 1 August 20th, 2008 08:55 PM
Help me with repeater control? forlife ASP.NET 2.0 Basics 1 July 14th, 2007 12:09 PM
Repeater Control Dhanapal General .NET 0 April 2nd, 2007 04:50 AM
Repeater Control abdul_owiusa General .NET 0 September 19th, 2005 10:00 AM
Repeater Control Dmitriy Pro VB 6 0 July 27th, 2004 11:13 AM





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