Solved

Setting the alignment of the textbox in asp.net

Posted on 2004-09-17
4
334 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
Comment Utility
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
Comment Utility
You could also use a <td> or a <tr>
0
 
LVL 8

Accepted Solution

by:
shovavnik earned 250 total points
Comment Utility
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
Comment Utility

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now