| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Problems with web controls and styles
I am making a website driven by a SQL database. For all values, header information, menu buttons,
content....everything is in the database. What I want to do is use a Stylesheet property to position and format the web controls im using, the stylesheet property being read from the database. For some reason its not working, despite the <html> code "looking" correct. stylesheet is a test value, 24pt For each Page_VRow in dsPageData.Page_V tagSlogan = New System.Web.UI.WebControls.Label() tagSlogan.Text = Page_VRow.Slogan tagSlogan.Attributes("font-size") = Page_VRow.Stylesheet tagSlogan.Attributes.AddAttributes(Writer) tagSlogan.RenderControl(Writer) next the html it outputs is <span font-size="24pt" font-size="24pt">"BlahBlah slogan"</span> I noticed it printed font-size twice, but if I take out the RenderControl it wont render, and while taking out the addAttributes line takes out a font-size="24pt", im not sure what that would do if anything. So how can I change Style values for web control items with values retrieved from a database? Thanks in advance, appreciate all the help I can get. |
|
#2
|
|||
|
|||
|
no problem I got it
|
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Problems with web controls and styles |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|