Solved

Setting the alignment of the textbox in asp.net

Posted on 2004-09-17
4
339 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…

735 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