You don't have the concept of server controls in MVC so you need to set any control properties via the View, so there's a bit more work that needs done and you need to understand html which is something that webforms abstracts away from you.
@model MyModel
@using (Html.BeginForm())
{
<input type="submit" style="background-color: @(System.Drawing.ColorTranslator.ToHtml(Model.SubmitColour))"/>
}
The view uses a property of the model called SubmitColour which is a Color object and we'll set that in the controller.
public class MyModel
{
public Color SubmitColour { get; set; }
}
[HttpGet]
public ActionResult Index()
{
MyModel m = new MyModel();
return View(m);
}
[HttpPost]
public ActionResult Index(MyModel model)
{
model.SubmitColour = System.Drawing.Color.FromArgb(new Random().Next());
return View(model);
}
Contrary to popular belief javascript isn't required to do everything in MVC, the web worked long before it was invented and still works without it now :)
Edit: For an MVC tutorial google "MVC Music Store"