i have following code in cs file
QueMAnsM[] Answers = Curr.AnsM;
rdbAns.DataSource = Answers;
rdbAns.DataTextField = "Answer";
rdbAns.DataValueField = "AnsId";
rdbAns.DataBind();
rdbAns.TextAlign = TextAlign.Right;
where rdbAns is asp:radiobuttonlist control
i have set TextAlign property to right (This code is at page load)
but text is still showing at left side
what is wrong with this code
Set the
TextAlignproperty to “Right” on the list .OR, In code behind :
OR, Perhaps you can use some css.
Give your list a
CssClass="rbListWrap"and add following style: