Here is the ASP.Net MVC2 code that I use to display a textbox input.
<div id="blackbar">
<p>Sistema de Evaluaciones de Docentes</p>
<%: Html.TextBox("termino","") %>
<img src="../../Content/search.png" alt="search" />
</div>
Here is how it renders:
<div id="blackbar">
<p>Sistema de Evaluaciones de Docentes</p>
<input id="termino" name="termino" type="text" value="" />
<img src="../../Content/search.png" alt="search" />
</div>
How would I use CSS for example to give the textbox a red border? How can I tell MVC2 to give this text input a class or something?
EDIT: I've tried the following, but the text I write into the input isn't green.
.textinput
{
color:Green;
}
<%: Html.TextBox("termino", "", new { @class = "textinput" })%>