Re: Changing textbox color
Set its style.
style="background-color: Red;"
Re: Changing textbox color
Thanks for replying!
You will have to excuse my ignorance but I'm new to ASP..so in my example
where would you set its style?
Thanks again ;)
Re: Changing textbox color
Firstly are you using asp or asp.net?
Re: Changing textbox color
can you not set the background color to red in the text-box properties? or is the color going to change at some point?
Re: Changing textbox color
I'm using ASP...I know I should of poted this in the other section :ehh:
Thanks
Re: Changing textbox color
I guess in asp you'd do it something like
VB Code:
'Set to whatever colour you need
dim strStyle = "background-color: Red;"
'...
<input type="text" style=<%=strStyle%>....
Re: Changing textbox color
Re: Changing textbox color
Quote:
Originally Posted by Valleysboy1978
Although that will change the colour of the text rather than the textbox itself.
Re: Changing textbox color
I know. Wasn't sure what she was asking for as she only asked how to change the color of the textbox, thought I'd include the text color too.
Holly, in the end, the best way to go about this is the CSS route.
Good luck :thumb:
Re: Changing textbox color
style="background-color:red;"