I\'m wondering how I can apply a CSS class to an ASP.NET Control (TextBox in this case) through the backend in C#. For example:
You can implement adding cssClass like
firstName.CssClass = "input left selected";
Or
make onClick event for textbox
Then in code-behind:
void firstName_Click(Object sender, EventArgs e) { MyTextBox.CssClass = "input left selected"; }