ASP.NET: How to align the contents of a TextBox to the right
Something like this should be simple: just select the "Right" in the Alignment property of the TextBox ... but amazingly, the Alignment property of the class asp: TextBox only accept the value "Left." So
if they get a TextBox control whose content is aligned right, you should use a workaround like this:
anyTextBox.Attributes.CssStyle.Add ("TEXT-ALIGN", "right");
Things ASP . NET ....!!
0 comments:
Post a Comment