Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing textbox background color

Status
Not open for further replies.

leearach2004

Technical User
Dec 8, 2005
86
GB
Hi there I am using vs 2005 to create a mobile web application using asp.net

I have a textbox that is populated from an sql database. After it is populated i wish to check the text and assign a background colour to the texbox depending on the text within it.

The problem I have is that i canot get the textbox to change coloy at all i am using asp.net with vb language
Apparently

Code:
TextBox1.BackColor = Color.Aqua

is the code but this does nothing as I have been told that the color and font styles are ignored by asp.net when render to adpaters. I have no idea what this means but it is on the microsoft site.

It does not say how to get round it and i know you can set texbox color on mobile devices as i see them on my phone. Anyone know how to change the background colour of a mobile textbox I would be most greatfull

any questions please ask away

lee
 
tried that doesnt work even setting hte colour in the properties box doesnt show up on the form apperntly acording to microsoft the color tag is ignored on mobile forms, but it has to be able to be done as i have seen mobile sites that have coloured text boxs
 
it probably ignores it because not all mobile devices display in color. you may out of luck unless there is a third party product out there.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top