Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 April 23rd, 2015, 04:17 PM
Registered User
Join Date: Aug 2014
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default asp: CheckBoxList: Text not aligning with checkbox

In my .aspx file, I have the following code:
                 <asp:CheckBoxList ID="CheckBoxClassRegion" runat="server" DataSourceID="SqlDataSourceCR" 
                                  DataTextField="HighSchoolName" DataValueField="HighSchoolName"  
                                  OnSelectedIndexChanged="CheckBoxClassRegion_SelectedIndexChanged" RepeatLayout="Flow" TextAlign="Right">
I get a result that looks something like this:





I am looking to have the resulting text aligned to the right of the checkbox, but regardless of my TextAlign value, the checkbox and text are not on the same horizontal alignment. Any suggestions as to how to get these items on the same line?

Thank You
Old April 23rd, 2015, 06:44 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Which chapter or exercise is this referring to? If it's not referring to the book, you may be better off posting this in a General ASP.NET category from this list as you may attract more viewers: http://p2p.wrox.com/asp-net-4-5-1-752/


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Old April 23rd, 2015, 09:59 PM
Registered User
Join Date: Aug 2014
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts

I certainly will. It will actually be in the 4.5 general forum as that was the book I actually used.

Last edited by mddevane; April 23rd, 2015 at 10:03 PM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp:CheckBoxList Issue Emma Krystal ASP.NET 4 General Discussion 1 August 12th, 2011 03:49 AM
Beginning ASP 3.0: changing text field to checkbox AlanM Classic ASP Basics 0 July 1st, 2007 03:36 AM
aligning text in ul to top of image interrupt CSS Cascading Style Sheets 0 March 2nd, 2006 09:50 AM
Aligning Text in a Listview Control? xgbnow VB How-To 1 September 30th, 2004 06:37 AM
Aligning Text of a textbox mahulda General .NET 0 July 27th, 2004 12:16 AM

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