?
Solved

Setting the alignment of the textbox in asp.net

Posted on 2004-09-17
4
Medium Priority
?
343 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
[X]
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
  • 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

718 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