?
Solved

Radio Button text alignment

Posted on 2005-03-17
2
Medium Priority
?
2,463 Views
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.
e.g:
[radiobutton] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

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
listAnswers.DataBind()

Please help!
0
Comment
Question by:elsia
2 Comments
 
LVL 5

Accepted Solution

by:
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.
0
 

Author Comment

by:elsia
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 ?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

612 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