Solved

Setting the alignment of the textbox in asp.net

Posted on 2004-09-17
4
337 Views
Last Modified: 2008-02-01
How can I align the text in the texbox...right align or left align

Thanks,
0
Comment
Question by:wilkersons
  • 2
4 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12086561
put it in a <p>
<P align="right"><asp:Image id="Image1" runat="server"></asp:Image></P>

Regards,

Aeros
0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12086565
You could also use a <td> or a <tr>
0
 
LVL 8

Accepted Solution

by:
shovavnik earned 250 total points
ID: 12086586
Is this for numbers or for multi-lingual use?

You can set the style attribute in any case:

For numbers, or the like:
<asp:TextBox runat="server" id="MyTB" style="text-align:left;"></asp:TextBox>

For multi-directional use (bi-directional):
<asp:TextBox runat="server" id="MyTB" style="text-align:left;direction:ltr;"></asp:TextBox>
0
 

Author Comment

by:wilkersons
ID: 12086669

style="text-align:left;"
That is what I was looking for..
Many thanks to Aeros and shovavnik.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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