473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Centering on a Label Web Control in ASP.NET from the IDE

I am adding a Label server control to an ASPX page using the .NET IDE. I
can't
figure out how to center it automatically. I know you can do it by editing
the html and making it:

<asp:Label id="Label1" style="TEXT-ALIGN: center"
runat="server">Label</asp:Label>

Is it possible to do this from the Properties?

Thanks in advance,

--

Thanks in advance,

Todd
Nov 22 '05 #1
2 1411
Todd,

Using attributes you can add every piece of html (or script) as you wish to
a server side control
http://msdn.microsoft.com/library/de...butestopic.asp

I hope this helps?

Cor

"Todd" <To**@discussions.microsoft.com> .
I am adding a Label server control to an ASPX page using the .NET IDE. I
can't
figure out how to center it automatically. I know you can do it by
editing
the html and making it:

<asp:Label id="Label1" style="TEXT-ALIGN: center"
runat="server">Label</asp:Label>

Is it possible to do this from the Properties?

Thanks in advance,

--

Thanks in advance,

Todd

Nov 22 '05 #2
Todd,

Using attributes you can add every piece of html (or script) as you wish to
a server side control
http://msdn.microsoft.com/library/de...butestopic.asp

I hope this helps?

Cor

"Todd" <To**@discussions.microsoft.com> .
I am adding a Label server control to an ASPX page using the .NET IDE. I
can't
figure out how to center it automatically. I know you can do it by
editing
the html and making it:

<asp:Label id="Label1" style="TEXT-ALIGN: center"
runat="server">Label</asp:Label>

Is it possible to do this from the Properties?

Thanks in advance,

--

Thanks in advance,

Todd

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Todd | last post by:
I am adding a Label control to a page that I am going to be dynamically setting the text during runtime and I want to center the control. I can't figure out how to center it. Does anyone know? ...
2
by: Todd | last post by:
I am adding a Label server control to an ASPX page using the .NET IDE. I can't figure out how to center it automatically. I know you can do it by editing the html and making it: <asp:Label...
1
by: Brian Conway | last post by:
Is there a way to center text inside a label in a webform?
2
by: anonymous | last post by:
I have created a DataGrid control with checkboxes, TextBoxes, ComboBoxes, and NumericUpDowns. Since I used the DataGridBoolColumn, the checkbox is displayed in the center of the cell, horizontally...
16
by: tshad | last post by:
I am trying to center a button in a datagrid column in asp.net and it doesn't seem to work. I have the following: <asp:TemplateColumn ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">...
2
by: Joe Delphi | last post by:
Hi, I want to position label text so that it always appears centered when the user re-sizes the browser window. I tried adding the HTML property text-align="CENTER" to the code, but ASP.NET...
1
by: Uriah Piddle | last post by:
Hi Gang, I have a horizontal asp menu in a div. I centered the menu by setting the text-align prop of the div to 'center' and that works in IE. But with the other browsers, the menu aligns left....
1
by: K Viltersten | last post by:
I'm playing around with the XAML-builder in VS2k8 and it seems that <Label Height="28" Margin="0,10,0,0" Name="label1" VerticalAlignment="Top" TextBlock.TextAlignment="Center"></Label> ...
4
by: SAL | last post by:
Hello, is there a way to menu control dynamically center itself horizontally on a page? I have placed a menu control in a panel control (no ajax) and would like it to center itself. Depending on...
1
by: dazzler | last post by:
Maybe the topic should be how to put background colors to sizers, but anyway... could anyone please help me, I need to have "background color for buttons", like in example blue & red, and then using...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.