|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What happened to Alignment property?I'm working on an ASP.NET with VB.NET web application (Web Forms) and I
can't find an Alignment property for the TextBox nor the Label control? What am I missing? Thanks, Rob. "Rob R. Ainscough" <roba***@pacbell.net> wrote in message In ASP.Net, you would use styles or stylesheets to control text alignment news:%239fxrxCcFHA.1152@tk2msftngp13.phx.gbl... > I'm working on an ASP.NET with VB.NET web application (Web Forms) and I > can't find an Alignment property for the TextBox nor the Label control? > What am I missing? > > Thanks, Rob. > (see text-align attribute). Programatically: TextBox1.Attributes.Add("text-align", "right") Style: ..MyCSSClass { text-align : right; } Mythran Thank you for the response.
I must admit, tasks that are VERY simple to accomplish in VB.NET Windows applications are considerably more code intensive under ASP.NET. I keep trying to convience myself that I'm not moving backwards in development technology when it comes to Web application development -- there must be a better way. But thanks again for your help. Rob. Show quoteHide quote "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message news:%23O7o%23JEcFHA.2180@TK2MSFTNGP12.phx.gbl... > > "Rob R. Ainscough" <roba***@pacbell.net> wrote in message > news:%239fxrxCcFHA.1152@tk2msftngp13.phx.gbl... >> I'm working on an ASP.NET with VB.NET web application (Web Forms) and I >> can't find an Alignment property for the TextBox nor the Label control? >> What am I missing? >> >> Thanks, Rob. >> > > > In ASP.Net, you would use styles or stylesheets to control text alignment > (see text-align attribute). > > Programatically: > TextBox1.Attributes.Add("text-align", "right") > > Style: > > .MyCSSClass { > text-align : right; > } > > Mythran > Hmmm...this doesn't appear to work? What am I missing?
Rob. Show quoteHide quote "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message news:%23O7o%23JEcFHA.2180@TK2MSFTNGP12.phx.gbl... > > "Rob R. Ainscough" <roba***@pacbell.net> wrote in message > news:%239fxrxCcFHA.1152@tk2msftngp13.phx.gbl... >> I'm working on an ASP.NET with VB.NET web application (Web Forms) and I >> can't find an Alignment property for the TextBox nor the Label control? >> What am I missing? >> >> Thanks, Rob. >> > > > In ASP.Net, you would use styles or stylesheets to control text alignment > (see text-align attribute). > > Programatically: > TextBox1.Attributes.Add("text-align", "right") > > Style: > > .MyCSSClass { > text-align : right; > } > > Mythran > "Rob R. Ainscough" <roba***@pacbell.net> wrote in message What code are you using?news:eOKjCAQcFHA.4040@TK2MSFTNGP10.phx.gbl... > Hmmm...this doesn't appear to work? What am I missing? > > Rob. > Mythran "Rob R. Ainscough" <roba***@pacbell.net> wrote in message The following worked for me:news:eOKjCAQcFHA.4040@TK2MSFTNGP10.phx.gbl... > Hmmm...this doesn't appear to work? What am I missing? > > Rob. > <html><head><title>Test</title></head> <body> <input type="text" style="width:100px;text-align:right;"> </body> </html> Mythran
Page values are lost
Specifying Width and Height properties as percentages navigate through multipage hiddenfield / htmlInputHidden ? more than one webroot Getting the ApplicationInstance in webcontrol? Help Problems with ListBox Control Dropdownlist doesnot allow child control. Catch the page closing event IE COntrol |
|||||||||||||||||||||||