Radio Button text alignment

Posted on 2005-03-17
Medium Priority
Last Modified: 2012-06-21
I am having problem with the alignment of the radio button text. The text from database for the radiobutton DataTextField is too long to fit in a single line.
[radiobutton] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

how do I format the text from DataTextField to be aligned as below:
[radiobutton] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

my HTML is:
<asp:radiobuttonlist id="listAnswers" runat="server" font-name="Tahoma" font-size="10" DataValueField="id_choice" DataTextField="answertext"></asp:radiobuttonlist>

and my code behind is:
i create a DataVIew for answer and bind the radiobuttonlist to the dataview
listAnswers.DataSource = dv

Please help!
Question by:elsia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

CaptainRantflaps earned 150 total points
ID: 13572588
I dont think you can, you can however have no text for you radio button, and align a label next to it, that way you can get the label to wrap.

Author Comment

ID: 13572626
I thought of that too, but how do I append the label multiple times with different data from database? I have a question and i would like to display the choices for the question in a radio button format. I select the question_id and lookup the choices using that question_id, and append it to a dataview. How do I do that using a combination of radiobuttonlist + label ?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question